From 02340a8fa494c9a7782e62302630eb02b4153343 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 10 Jun 2016 17:45:12 +0100 Subject: [PATCH 1/1] dot/bashrc: Do not set setprompt if autotitle is not on path --- dot/bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { :; } -- 2.30.2