summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2015-02-18 08:39:32 +0000
committerrpe <rpe@openbsd.org>2015-02-18 08:39:32 +0000
commit03ea91e08814be3e6861d187aed3a8ac0b7695e1 (patch)
tree3fae07704b4da4ee7b7f487e2c3f20fe0f5615c9
parentfix coverity 105350 and 10345 (diff)
downloadwireguard-openbsd-03ea91e08814be3e6861d187aed3a8ac0b7695e1.tar.xz
wireguard-openbsd-03ea91e08814be3e6861d187aed3a8ac0b7695e1.zip
Remove old cruft, that make no sense at all on OpenBSD.
- comments relevant to other brands of UNIX - the no-op KSH_VERSION case-block, we only have pdksh - the case-block for setting aliases based on UNIX brand together with a comment that falsely encourages to modify this file instead of putting stuff in $HOME/.kshrc OK krw@ halex@
-rw-r--r--etc/ksh.kshrc28
1 files changed, 4 insertions, 24 deletions
diff --git a/etc/ksh.kshrc b/etc/ksh.kshrc
index f825b430fae..dbd09225474 100644
--- a/etc/ksh.kshrc
+++ b/etc/ksh.kshrc
@@ -1,5 +1,5 @@
:
-# $OpenBSD: ksh.kshrc,v 1.19 2014/07/11 21:12:39 halex Exp $
+# $OpenBSD: ksh.kshrc,v 1.20 2015/02/18 08:39:32 rpe Exp $
#
# NAME:
# ksh.kshrc - global initialization for ksh
@@ -33,8 +33,6 @@
case "$-" in
*i*) # we are interactive
# we may have su'ed so reset these
- # NOTE: SCO-UNIX doesn't have whoami,
- # install whoami.sh
USER=`whoami 2>/dev/null`
USER=${USER:-`id | sed 's/^[^(]*(\([^)]*\)).*/\1/'`}
UID=`id -u`
@@ -60,15 +58,7 @@ case "$-" in
alias ls='ls -CF'
alias h='fc -l | more'
- # the PD ksh is not 100% compatible
- case "$KSH_VERSION" in
- *PD*) # PD ksh
- ;;
- *) # real ksh ?
- [ -r $HOME/.functions ] && . $HOME/.functions
- set -o trackall
- ;;
- esac
+
case "$TERM" in
sun*-s)
# sun console with status line
@@ -127,18 +117,8 @@ case "$-" in
alias p='ps -l'
alias j=jobs
alias o='fg %-'
-
-# add your favourite aliases here
- OS=${OS:-`uname -s`}
- case $OS in
- HP-UX)
- alias ls='ls -CF'
- ;;
- *BSD)
- alias df='df -k'
- alias du='du -k'
- ;;
- esac
+ alias df='df -k'
+ alias du='du -k'
alias rsize='eval `resize`'
;;
*) # non-interactive