chiark / gitweb /
screen: unset DISPLAY
[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 up history and prompt
27 if [ "$PS1" ]
28 then
29         HISTFILE=$HOME/.history/$HOST~$$~
30         AUTOTITLE_STDOUT="%Edebian_chroot.%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
31         AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
32         AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
33         export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON
34         setprompt
35 fi