version 1.18, 2014/07/11 16:41:16 |
version 1.19, 2014/07/11 21:12:39 |
|
|
alias stripe='label "$USER@$HOST ($tty) - $PWD"' |
alias stripe='label "$USER@$HOST ($tty) - $PWD"' |
alias istripe='ilabel "$USER@$HOST ($tty)"' |
alias istripe='ilabel "$USER@$HOST ($tty)"' |
|
|
function wftp { ilabel "ftp $*"; "ftp" "$@"; eval istripe; } |
# Run stuff through this to preserve the exit code |
function wcd { \cd "$@" && eval stripe; } |
function _ignore { local rc=$?; "$@"; return $rc; } |
function wssh |
|
{ |
function wftp { ilabel "ftp $*"; "ftp" "$@"; _ignore eval istripe; } |
local rc |
|
"ssh" "$@" |
function wcd { \cd "$@"; _ignore eval stripe; } |
rc=$? |
|
eval istripe |
function wssh { \ssh "$@"; _ignore eval 'istripe; stripe'; } |
eval stripe |
function wtelnet { \telnet "$@"; _ignore eval 'istripe; stripe'; } |
return $rc |
function wrlogin { \rlogin "$@"; _ignore eval 'istripe; stripe'; } |
} |
function wsu { \su "$@"; _ignore eval 'istripe; stripe'; } |
function wtelnet |
|
{ |
|
local rc |
|
"telnet" "$@" |
|
rc=$? |
|
eval istripe |
|
eval stripe |
|
return $rc |
|
} |
|
function wrlogin |
|
{ |
|
local rc |
|
"rlogin" "$@" |
|
rc=$? |
|
eval istripe |
|
eval stripe |
|
return $rc |
|
} |
|
function wsu |
|
{ |
|
local rc |
|
"su" "$@" |
|
rc=$? |
|
eval istripe |
|
eval stripe |
|
return $rc |
|
} |
|
alias su=wsu |
alias su=wsu |
alias cd=wcd |
alias cd=wcd |
alias ftp=wftp |
alias ftp=wftp |