diff options
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 |