Moved bash/main into scriptlets. Added to main bashrc

This commit is contained in:
Eric Teunis de Boone 2016-10-02 23:49:56 +02:00
parent 7a82ebe7f1
commit 811a903869
6 changed files with 7 additions and 5 deletions

View File

@ -24,9 +24,10 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
fi
# Load main things
if [ -d "$DOTBASH/main" ]; then
for f in $DOTBASH/main/*; do
source "$f"
if [ -d "$DOTBASH/scriptlets" ]; then
for f in colours aliases history ps1
do
source "$DOTBASH/scriptlets/$f"
done
fi

View File

@ -1 +0,0 @@
../scriptlets/50-ps

View File

@ -67,7 +67,9 @@ function __prompt_command() {
PS1+="@"
if color ; then
if [[ $HOSTNAME == 'lilo'* ]]; then
if [[ $HOSTNAME == 'fatserf' ]]; then
PS1+="${Pur}\H${RCol}"
elif [[ $HOSTNAME == 'lilo'* ]]; then
PS1+="${BWhi}\H${RCol}"
elif [[ $HOSTNAME == 'hg'* ]]; then
PS1+="${BRed}\H${RCol}"