chiark / gitweb /
emacs: set vm-legacy-key-bindings so "a" works
[ian-dotfiles.git] / from-cvs / files / _.bashrc
1 # Ian Jackson's shell rc
2
3 hostname_completion_file=~/.hosts 
4
5 export PWD
6
7 # My own functions
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; }
15
16 # Set up history and prompt
17 if [ "$PS1" ]
18 then
19         HISTFILE=$HOME/.history/$HOST~$$~
20         AUTOTITLE_STDOUT="@@?
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
25         setprompt
26 fi