
* 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.
9 lines
134 B
Plaintext
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
|