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:
parent
7a82ebe7f1
commit
811a903869
6 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../scriptlets/50-ps
|
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue