chiark / gitweb /
upgraded gitk
[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
15 if autotitle >/dev/null 2>&1 && [ "x$SCHROOT_SESSION_ID" = x ]; then
16     setprompt() { PS1=`autotitle`; export PS1; }
17 else
18     setprompt() { :; }
19 fi
20
21 rs() { eval `/usr/openwin/bin/resize` ; setprompt ; }
22 cd() { builtin cd "$@"; setprompt; }
23 pu() { builtin pushd "$@"; setprompt; }
24 po() { builtin popd "$@"; setprompt; }
25
26 set +H
27
28 # Set up history and prompt
29 if [ "$PS1" ]
30 then
31         HISTFILE=$HOME/.history/$HOST~$$~
32         AUTOTITLE_STDOUT="%Edebian_chroot.%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
33         AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
34         AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
35         export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON
36         setprompt
37 fi