2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00

improve GNU Bash invocation ; export SHELL

This commit is contained in:
Christopher Roy Bratusek 2018-02-06 21:38:19 +01:00
parent 32fd7b4419
commit b22a582ccb
3 changed files with 8 additions and 8 deletions

View File

@ -5,6 +5,8 @@
* General Changes
* Full, microG packages
* when starting GNU Bash cd into /sdcard on start
* export ${SHELL} set to GNU Bash when it is invoked in interactive mode
* only clear the buffer on start when GNU Bash is invoked in interactive mode
* Updates (automatic)
* XDA Labs (1.1.4b)
* (Simple) Calendar (3.2.3)

View File

@ -36,8 +36,12 @@ else
PS1='\[\033[01;32m\]${USER:=$(id \-un)}@${HOSTNAME:=$(hostname)}\[\033[01;34m\] \w \$\[\033[00m\] '
fi
# correct the terminal size ;
# some OS' don't ship `resize`
export SHELL=/system/xbin/bash.bin
# empty the buffer
clear
# correct the terminal size
resize >/dev/null
cd ${HOME}

View File

@ -12,10 +12,4 @@ else
term=xterm
fi
clear # empty the buffer
# correct the terminal size ;
# some OS' don't ship `resize`
resize >/dev/null
${dir}/bash.bin --rcfile /system/etc/bashrc $*