chiark / gitweb /
setenvir: most hostname-dependent parts after PATH setting (not sure why)
[ian-dotfiles.git] / dot / bashrc
index ab1b5d354abbc69e54b50d6beb8ae036e535423e..5bd98644e8cfb2889b17d7c138f7c8252a26def2 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() { :; }
@@ -27,7 +27,7 @@ po() { builtin popd "$@"; setprompt; }
 if [ "$PS1" ]
 then
        HISTFILE=$HOME/.history/$HOST~$$~
-       AUTOTITLE_STDOUT="%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
+       AUTOTITLE_STDOUT="%Edebian_chroot.%?u%U%!%?g(%G)%!%?u@%!%h:%d1~.> "
        AUTOTITLE_WINDOW="%h - %d~. %Y.[U..[M..[D./..%X.L]..M]..R]./.. %U%?G(%G)%!"
        AUTOTITLE_ICON="%h: %d3~. %Y.[U..[M..[D./..%X.L]..M]..R]./.."
        export AUTOTITLE_STDOUT AUTOTITLE_WINDOW AUTOTITLE_ICON