X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=dot%2Fbashrc;h=19d644b1f3eea8f8dc01602320410ed2a52297d6;hb=02340a8fa494c9a7782e62302630eb02b4153343;hp=a173c4b6fb8ac8b9a989e4e4d2db02fc153fa410;hpb=4ed6df107b1db703ad86565447aa20b6385d3116;p=ian-dotfiles.git diff --git a/dot/bashrc b/dot/bashrc index a173c4b..19d644b 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -11,11 +11,13 @@ export PWD # My own functions ls() { /bin/ls -FC "$@"; } ll() { /bin/ls -FCla "$@"; } -setprompt() { - if [ "x$SCHROOT_SESSION_ID" = x ]; then - PS1=`autotitle`; export PS1; - fi - } + +if autotitle >/dev/null 2>&1 && [ "x$SCHROOT_SESSION_ID" = x ]; then + setprompt() { PS1=`autotitle`; export PS1; } +else + setprompt() { :; } +fi + rs() { eval `/usr/openwin/bin/resize` ; setprompt ; } cd() { builtin cd "$@"; setprompt; } pu() { builtin pushd "$@"; setprompt; }