This is OK because SCHROOT_SESSION_ID does not change during the life
of the shell. (And setprompt is redefined in each new shell, not
exported.)
# My own functions
ls() { /bin/ls -FC "$@"; }
ll() { /bin/ls -FCla "$@"; }
-setprompt() {
- if [ "x$SCHROOT_SESSION_ID" = x ]; then
- PS1=`autotitle`; export PS1;
- fi
- }
+
+if [ "x$SCHROOT_SESSION_ID" = x ]; then
+ setprompt() { PS1=`autotitle`; export PS1; }
+else
+ setprompt() { :; }
+fi
+
rs() { eval `/usr/openwin/bin/resize` ; setprompt ; }
cd() { builtin cd "$@"; setprompt; }
pu() { builtin pushd "$@"; setprompt; }