some tweaks...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-07-13 22:03:08 +03:00
parent 333511a902
commit 5ef973d2a4
3 changed files with 5 additions and 3 deletions

View File

@ -122,7 +122,7 @@ function update(){
|| echo " Generating: $FILE..."
{
echo "# Lines added/maintained by $SCRIPT:"
echo "$SCRIPT run $EVT"
echo "source ${BIN_DIR}/${SCRIPT} run $EVT"
echo
} >> $FILE
else

View File

@ -15,6 +15,9 @@ if [ $1 = "start" ] || [ $1 = 'login' ] ; then
alias alias_clear="mv ~/.bash/alias_lst ~/.bash/alias_lst.bak"
alias alias_revert="cp ~/.bash/alias_lst.bak ~/.bash/alias_lst"
[ -e ~/.bash/alias_list ] \
&& touch ~/.bash/alias_list
# external
if ! source ~/.bash/alias_lst ; then
# defaults

View File

@ -24,8 +24,7 @@ if [[ $BASH_PROFILE == 1 ]] ; then
else
PS1='\n\e[32m\u@\h \e[34m$__SHLVL__\e[33m\w\e[0m\n\$ '
fi
fi
if [[ $BASHRC == 1 ]] ; then
else
if [[ $SHLVL != 1 ]];then
__SHLVL__="($SHLVL$__LOGIN_PRESENT__) "
fi