summaryrefslogtreecommitdiff
path: root/dot-bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'dot-bashrc')
-rw-r--r--dot-bashrc13
1 files changed, 10 insertions, 3 deletions
diff --git a/dot-bashrc b/dot-bashrc
index d8c4f02..75ef63b 100644
--- a/dot-bashrc
+++ b/dot-bashrc
@@ -14,6 +14,11 @@ export EDITOR=nvim
# include home binaries
export PATH=$PATH:~/.bin
+# add git prompt
+# https://wiki.archlinux.org/title/Git#Git_prompt
+source /usr/share/git/completion/git-prompt.sh
+PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
+
# include bob (neovim) path
# goes first to take priority over standard nvim
export PATH=~/.local/share/bob/nvim-bin:$PATH
@@ -91,12 +96,14 @@ alias dev="distrobox enter dev"
# direnv
eval "$(direnv hook bash)"
-# starship
-eval "$(starship init bash)"
-
# zoxide
eval "$(zoxide init bash)"
+# add container id to prompt when in a container
+if [[ -n "$CONTAINER_ID" ]]; then
+ PS1="($CONTAINER_ID) $PS1"
+fi
+
# include dev bashrc when in `dev` distrobox
if [ "$CONTAINER_ID" = "dev" ]; then
source ~/.bashrc.d/dev.bashrc