NetBSD/etc/root/dot.shrc
mycroft c43c81eec7 (Ab?)use some sh(1) features:
* Put the aliases in a separate file, referenced by $ENV, so that they're
  present in subshells.
* Do the same to make `set -o emacs' happen automatically in interactive
  shells.  (Yay, line editing by default!)
* Use `export FOO=bar' syntax, as it's shorter and other sh(1)-like shells
  all support it these days.
1999-11-05 11:30:13 +00:00

9 lines
134 B
Plaintext

hup(){ kill -HUP `cat /var/run/$1.pid`; }
ll(){ ls -l ${1+"$@"}; }
case "$-" in *i*)
PS1="`hostname -s`$PS1"
set -o emacs
;;
esac