|
@ -1,5 +1,5 @@ |
|
|
: |
|
|
: |
|
|
# $OpenBSD: ksh.kshrc,v 1.14 2009/08/07 09:05:24 martynas Exp $ |
|
|
|
|
|
|
|
|
# $OpenBSD: ksh.kshrc,v 1.15 2010/04/26 09:04:15 otto Exp $ |
|
|
# |
|
|
# |
|
|
# NAME: |
|
|
# NAME: |
|
|
# ksh.kshrc - global initialization for ksh |
|
|
# ksh.kshrc - global initialization for ksh |
|
@ -102,27 +102,39 @@ case "$-" in |
|
|
wcd () { \cd "$@" && eval stripe; } |
|
|
wcd () { \cd "$@" && eval stripe; } |
|
|
wssh () |
|
|
wssh () |
|
|
{ |
|
|
{ |
|
|
|
|
|
local rc |
|
|
"ssh" "$@" |
|
|
"ssh" "$@" |
|
|
|
|
|
rc=$? |
|
|
eval istripe |
|
|
eval istripe |
|
|
eval stripe |
|
|
eval stripe |
|
|
|
|
|
return $rc |
|
|
} |
|
|
} |
|
|
wtelnet () |
|
|
wtelnet () |
|
|
{ |
|
|
{ |
|
|
|
|
|
local rc |
|
|
"telnet" "$@" |
|
|
"telnet" "$@" |
|
|
|
|
|
rc=$? |
|
|
eval istripe |
|
|
eval istripe |
|
|
eval stripe |
|
|
eval stripe |
|
|
|
|
|
return $rc |
|
|
} |
|
|
} |
|
|
wrlogin () |
|
|
wrlogin () |
|
|
{ |
|
|
{ |
|
|
|
|
|
local rc |
|
|
"rlogin" "$@" |
|
|
"rlogin" "$@" |
|
|
|
|
|
rc=$? |
|
|
eval istripe |
|
|
eval istripe |
|
|
eval stripe |
|
|
eval stripe |
|
|
|
|
|
return $rc |
|
|
} |
|
|
} |
|
|
wsu () |
|
|
wsu () |
|
|
{ |
|
|
{ |
|
|
|
|
|
local rc |
|
|
"su" "$@" |
|
|
"su" "$@" |
|
|
|
|
|
rc=$? |
|
|
eval istripe |
|
|
eval istripe |
|
|
eval stripe |
|
|
eval stripe |
|
|
|
|
|
return $rc |
|
|
} |
|
|
} |
|
|
alias su=wsu |
|
|
alias su=wsu |
|
|
alias cd=wcd |
|
|
alias cd=wcd |
|
|