Add hup, ll and x shell functions similar to the aliases in dot.cshrc

plus set the prompt. Tested with /bin/sh and /bin/ksh.
This commit is contained in:
hubertf 1999-03-30 02:36:05 +00:00
parent f6e1172813
commit b779dad4d4

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.profile,v 1.8 1998/01/17 19:36:40 thorpej Exp $
# $NetBSD: dot.profile,v 1.9 1999/03/30 02:36:05 hubertf Exp $
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
PATH=${PATH}:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
@ -16,4 +16,14 @@ fi
umask 022
hup(){ kill -HUP `cat /var/run/$1.pid` ; }
ll(){ ls -l $* ; }
x(){ exit ; }
if [ `/usr/bin/id -u` = 0 ]; then
PS1="`hostname -s`# "
else
PS1="`hostname -s`$ "
fi
echo "Don't login as root, use the su command."