X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=rc%2Fbash_login;h=798dacf1093c39be4b16c95b8fe964f4a780c3e5;hb=b19aff368e8114dd44bbd7e306b0946f060e3051;hp=8207eaee0d42aa94090dc086d4a1e03131baa8ca;hpb=201c4691639017573d7caf7bf03de6bf12db6614;p=clearscm.git diff --git a/rc/bash_login b/rc/bash_login index 8207eae..798dacf 100644 --- a/rc/bash_login +++ b/rc/bash_login @@ -121,8 +121,19 @@ if [ -r /etc/bash_completion -a $ARCHITECTURE != "cygwin" ]; then source /etc/bash_completion fi -if [ -x ~/.rc/logout ]; then - trap "~/.rc/logout" 0 +# Windows aliases +if [ $ARCHITECTURE = "cygwin" ]; then + alias ping=$(echo $SYSTEMROOT | tr '\\' '\/')/system32/ping + alias rdp=mstsc +else + alias sys=systemctl +fi + +# We specify /home/$USER here so that when we sudo to another user +# we will only trap logout if that user also has a ~/.rc/logout +# (doubtfull). +if [ -x /home/$USER/.rc/logout ]; then + trap "/home/$USER/.rc/logout" 0 fi # ClearCase Stuff