From b22a582ccbdc9fee983e7014ba8210165f030739 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Tue, 6 Feb 2018 21:38:19 +0100 Subject: [PATCH] improve GNU Bash invocation ; export SHELL --- ChangeLog.md | 2 ++ Full/system/etc/bashrc | 8 ++++++-- Full/system/xbin/bash | 6 ------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 122eec5..06e37fb 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -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) diff --git a/Full/system/etc/bashrc b/Full/system/etc/bashrc index ebb0f4d..3747364 100644 --- a/Full/system/etc/bashrc +++ b/Full/system/etc/bashrc @@ -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} diff --git a/Full/system/xbin/bash b/Full/system/xbin/bash index 2ffa01a..5fbb8f4 100755 --- a/Full/system/xbin/bash +++ b/Full/system/xbin/bash @@ -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 $*