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:
parent
32fd7b4419
commit
b22a582ccb
@ -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)
|
||||
|
@ -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}
|
||||
|
@ -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 $*
|
||||
|
Loading…
Reference in New Issue
Block a user