From: Ian Jackson Date: Fri, 10 Jun 2016 16:45:12 +0000 (+0100) Subject: dot/bashrc: Do not set setprompt if autotitle is not on path X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=ian-dotfiles.git;a=commitdiff_plain;h=02340a8fa494c9a7782e62302630eb02b4153343;hp=0b54862188a50d5b757d69d96643ec20c76b0c07 dot/bashrc: Do not set setprompt if autotitle is not on path --- diff --git a/dot/bashrc b/dot/bashrc index ab1b5d3..19d644b 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -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() { :; }