chiark / gitweb /
dot/bashrc: Do not set setprompt if autotitle is not on path
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 10 Jun 2016 16:45:12 +0000 (17:45 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 10 Jun 2016 17:04:23 +0000 (18:04 +0100)
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() { :; }