Much improved bash experience

This commit is contained in:
nostoromo root
2021-01-15 10:26:39 -08:00
parent d0973c9448
commit b78002fae7
6 changed files with 239 additions and 22 deletions

22
static/bash/bash.env Normal file
View File

@@ -0,0 +1,22 @@
if [ -d /fudo/etc ]; then
FUDO_CONFIG=/fudo/etc
fi
if [ -f $HOME/.bash_local ]; then
. $HOME/.bash_local
fi
if [ -f $HOME/.bash_env ]; then
. $HOME/.bash_env
fi
if [ -f $HOME/.bash_prompt ]; then
. $HOME/.bash_prompt
elif [ "${TERM}x" == "dumbx" ]; then
export PS1="\u@\h:\w > "
elif [ $( type -t __makePS1 ) ]; then
export PROMPT_COMMAND=__makePS1
else
export PS1="\u@\h:\w > "
fi