Browse Source

use env vars instead of logname and uname

David Rose 23 years ago
parent
commit
3711545a76
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dtool/src/attach/dtool.alias

+ 2 - 2
dtool/src/attach/dtool.alias

@@ -27,9 +27,9 @@ alias ctuna 'ctunattach'
 #Modifications to emacs alias by Jason
 #Modifications to emacs alias by Jason
 #To allow for NTEmacs to run like emacs on unix boxes
 #To allow for NTEmacs to run like emacs on unix boxes
 if (($OS == "CYGWIN_NT-4.0") || ($OS == "CYGWIN_NT-5.0" ) || ($OS == "CYGWIN_NT-5.1" )) then
 if (($OS == "CYGWIN_NT-4.0") || ($OS == "CYGWIN_NT-5.0" ) || ($OS == "CYGWIN_NT-5.1" )) then
-  alias emacs 'emacs -T "`logname`@`uname -n`  $CTPROJS" -xrm "Emacs*iconName: `echo $CTPROJS | cut -f1 -d:`(`uname -n`)" -bg #002040 -fg #00C0FF -cr yellow -ms yellow -l `cygpath -w ~/.emacs` $CTEMACS_OPTS'
+  alias emacs 'emacs -T "$USER@$HOST  $CTPROJS" -xrm "Emacs*iconName: `echo $CTPROJS | cut -f1 -d:`($HOST)" -bg #002040 -fg #00C0FF -cr yellow -ms yellow -l `cygpath -w ~/.emacs` $CTEMACS_OPTS'
 else
 else
-  alias emacs 'emacs -T "`logname`@`uname -n`  $CTPROJS" -xrm "Emacs*iconName: `echo $CTPROJS | cut -f1 -d:`(`uname -n`)" $CTEMACS_OPTS'
+  alias emacs 'emacs -T "$USER@$HOST  $CTPROJS" -xrm "Emacs*iconName: `echo $CTPROJS | cut -f1 -d:`($HOST)" $CTEMACS_OPTS'
 endif
 endif
 
 
 alias rlogin 'rlogin \!*; ctshowprojs'
 alias rlogin 'rlogin \!*; ctshowprojs'