1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2025-01-22 15:33:32 +01:00

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 fi
# Load main things # Load main things
if [ -d "$DOTBASH/main" ]; then if [ -d "$DOTBASH/scriptlets" ]; then
for f in $DOTBASH/main/*; do for f in colours aliases history ps1
source "$f" do
source "$DOTBASH/scriptlets/$f"
done done
fi fi

View file

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

View file

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