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 ab1b5d3..19d644b 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() { :; }