summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2015-02-18 08:39:33 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2015-02-18 08:39:33 +0000
commit881bb2586e52617c27f7e1889f304695edc109a0 (patch)
treed51367bf6eba20355ecbed250401a6a71c198989 /etc
parent983735aa17e7df487a7ef99317576152a5914f8f (diff)
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@
Diffstat (limited to 'etc')
-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