diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2008-03-22 12:09:48 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2008-03-22 12:09:48 +0000 |
commit | d37171ba3b27520dc0cc1f0d9cd1191791c53e5e (patch) | |
tree | ca2e9c3a46c103cda6389741148ce6d78b9f83f3 /Master | |
parent | cdba019bdb8aaca563bc163288b0b4a702c41587 (diff) |
tl-portable.sh now uses exec. Bash prompt now uses \w.
git-svn-id: svn://tug.org/texlive/trunk@7072 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/tl-portable.sh | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/Master/tl-portable.sh b/Master/tl-portable.sh index d8b11e8011f..01f330d4d57 100755 --- a/Master/tl-portable.sh +++ b/Master/tl-portable.sh @@ -61,36 +61,31 @@ if $TEXDIR/install-tl.pl --portable; then :; else exit 1 fi +# Set custom prompt for secondary shell, but +# I know of no good way to do this for the C shell. + # Try to block initialization scripts. # Set custom prompt for secondary shell, but # I know of no good way to do this for the C shell. +ENV=/dev/null +export ENV +PATH=$TEXDIR/bin/$platform:$PATH +export PATH if test "$SHELL" = /bin/bash; then - TLARGS=--norc - PS1='TL $PWD\$ ' + PS1='TL \w\$ ' + export PS1 + exec $SHELL --norc -i elif test "$SHELL" = /bin/zsh; then - TLARGS=-f PS1='TL %d%% ' + export PS1 + exec $SHELL -f -i elif test "$SHELL" = /bin/csh; then - TLARGS=-f + exec $SHELL -f -i elif test "$SHELL" = /bin/tcsh; then - TLARGS=-f + exec $SHELL -f -i else - TLARGS="" PS1='TL $PWD\$ ' + export PS1 + exec $SHELL -f -i fi -ENV=/dev/null -export ENV - -PATH=$TEXDIR/bin/$platform:$PATH \ -TEXMFSYSVAR=$TEXMFSYSVAR \ -TEXMFSYSCONFIG=$TEXMFSYSCONFIG \ -TEXMFMAIN=$TEXMFMAIN \ -TEXMFDIST=$TEXMFDIST \ -TEXMFLOCAL=$TEXMFLOCAL \ -TEXMFHOME=$TEXMFHOME \ -TEXMFVAR=$TEXMFVAR \ -TEXMFCONFIG=$TEXMFCONFIG \ -ENV=$ENV \ -PS1=$PS1 \ -$SHELL $TLARGS -i |