From 8979b768965109f39730ed2a431fbf2e4d369502 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Mon, 17 Feb 2020 13:21:02 +0100
Subject: Update bash PS1
This should bring the prompt for interactive Bash usage in line with the
prompt for zsh. The colors are slightly different, but the information
is the same.
---
.config/shell/sources | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
(limited to '.config/shell/sources')
diff --git a/.config/shell/sources b/.config/shell/sources
index 5573d62..aa3e273 100644
--- a/.config/shell/sources
+++ b/.config/shell/sources
@@ -33,6 +33,13 @@ PATH="${PATH}:/usr/local/sbin"
PATH="${PATH}:/usr/games/bin"
PATH="${PATH}:/opt/bin"
+# Load color definitions if they exist
+if [ -f "$HOME/.config/shell/colors/$SHORTSHELL" ]
+then
+ [ "$DEBUG_DOTFILES" ] && printf " Loading color definitions\n"
+ . "$HOME/.config/shell/colors/$SHORTSHELL"
+fi
+
# Nix package manager
if [ -f "$HOME/.nix-profile/etc/profile.d/nix.sh" ]
then
@@ -67,7 +74,7 @@ then
if [ -d "$GEMDIR" ]
then
- [ "$DEBUG_DOTFILES" ] && echo "Extending PATH with $GEMDIR"
+ [ "$DEBUG_DOTFILES" ] && echo " Extending PATH with $GEMDIR"
PATH="$GEMDIR:$PATH"
fi
fi
--
cgit v1.1