chiark / gitweb /
Do away with annoying iconify shortcut
[ian-dotfiles.git] / dot / bashrc
1 # Ian Jackson's shell rc
2
3 if [ "x$TRNINIT" = x ]; then
4  . $HOME/.configs/setenvir
5 fi
6
7 hostname_completion_file=~/.hosts 
8
9 export PWD
10
11 # My own functions
12 ls() { /bin/ls -FC "$@"; }
13 ll() { /bin/ls -FCla "$@"; }
14 setprompt() {
15   if [ "x$SCHROOT_SESSION_ID" = x ]; then
16     PS1=`autotitle`; export PS1;
17   fi
18  }
19 rs() { eval `/usr/openwin/bin/resize` ; setprompt ; }
20 cd() { builtin cd "$@"; setprompt; }
21 pu() { builtin pushd "$@"; setprompt; }
22 po() { builtin popd "$@"; setprompt; }
23
24 # Set up history and prompt
25 if [ "$PS1" ]
26 then
27         HISTFILE=$HOME/.history/$HOST~$$~
28         AUTOTITLE_STDOUT="%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
29         AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
30         AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
31         export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON
32         setprompt
33 fi