chiark / gitweb /
dot/bashrc: Do not set setprompt if autotitle is not on path
[ian-dotfiles.git] / dot / bashrc
index ab1b5d354abbc69e54b50d6beb8ae036e535423e..19d644b1f3eea8f8dc01602320410ed2a52297d6 100644 (file)
@@ -12,7 +12,7 @@ export PWD
 ls() { /bin/ls -FC "$@"; }
 ll() { /bin/ls -FCla "$@"; }
 
-if [ "x$SCHROOT_SESSION_ID" = x ]; then
+if autotitle >/dev/null 2>&1 && [ "x$SCHROOT_SESSION_ID" = x ]; then
     setprompt() { PS1=`autotitle`; export PS1; }
 else
     setprompt() { :; }