Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/root Add hup, ll and x shell functions similar to the al...



details:   https://anonhg.NetBSD.org/src/rev/38ac34487e5d
branches:  trunk
changeset: 467845:38ac34487e5d
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Tue Mar 30 02:36:05 1999 +0000

description:
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.

diffstat:

 etc/root/dot.profile |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r fcbc432ac64b -r 38ac34487e5d etc/root/dot.profile
--- a/etc/root/dot.profile      Tue Mar 30 02:32:43 1999 +0000
+++ b/etc/root/dot.profile      Tue Mar 30 02:36:05 1999 +0000
@@ -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 @@
 
 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."



Home | Main Index | Thread Index | Old Index