1 # Ian Jackson's shell rc
3 hostname_completion_file=~/.hosts
8 ls() { /bin/ls -FC "$@"; }
9 ll() { /bin/ls -FCla "$@"; }
10 setprompt() { PS1=`autotitle`; export PS1; }
11 rs() { eval `/usr/openwin/bin/resize` ; setprompt ; }
12 cd() { builtin cd "$@"; setprompt; }
13 pu() { builtin pushd "$@"; setprompt; }
14 po() { builtin popd "$@"; setprompt; }
16 # Set up history and prompt
19 HISTFILE=$HOME/.history/$HOST~$$~
21 $chiark && $username eq 'ian' ?@@-@@;%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
22 AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
23 AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
24 export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON