From 3711545a76280b01b3fa94f6342374e972d3ae32 Mon Sep 17 00:00:00 2001 From: David Rose Date: Sat, 8 Feb 2003 16:59:11 +0000 Subject: [PATCH] use env vars instead of logname and uname --- dtool/src/attach/dtool.alias | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtool/src/attach/dtool.alias b/dtool/src/attach/dtool.alias index cfc3a5c7cc..559bb84ae5 100644 --- a/dtool/src/attach/dtool.alias +++ b/dtool/src/attach/dtool.alias @@ -27,9 +27,9 @@ alias ctuna 'ctunattach' #Modifications to emacs alias by Jason #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 - 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 - 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 alias rlogin 'rlogin \!*; ctshowprojs'