diff --git a/DotFiles/.bashrc b/DotFiles/.bashrc index d41ce05..27e7fd5 100755 --- a/DotFiles/.bashrc +++ b/DotFiles/.bashrc @@ -46,3 +46,8 @@ GPG_TTY=$(tty) export GPG_TTY [ -f ~/.fzf.bash ] && source ~/.fzf.bash + +if [ -f "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" ]; then + GIT_PROMPT_ONLY_IN_REPO=1 + source "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" +fi diff --git a/README.md b/README.md index 41d351f..bc7c59f 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,16 @@ export GPG_TTY ``` +### bash git prompt + +```bash +if [ -f "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" ]; then + GIT_PROMPT_ONLY_IN_REPO=1 + source "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" +fi +``` + + # ZSH Related @@ -2094,7 +2104,7 @@ notify-send -t 3000 "${@}" ``` - + ### ~/bin/sway/sway-screen @@ -2115,7 +2125,7 @@ swaymsg "output ${m} ${c}" ### ~/bin/sway/sway-screen-menu -Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#orgb181ff8). +Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org47e392d). :ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9 @@ -2211,7 +2221,7 @@ fi ### ~/bin/pulse-volume -pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#org238fd36). +pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#orgeec2ee0). ```bash #!/usr/bin/env bash diff --git a/linux-config.org b/linux-config.org index f453897..04dbf1e 100644 --- a/linux-config.org +++ b/linux-config.org @@ -780,7 +780,13 @@ see [[file:/usr/share/doc/gnupg/examples][/usr/share/doc/gnupg/examples]] [ -f ~/.fzf.bash ] && source ~/.fzf.bash #+end_src - +*** bash git prompt +#+begin_src bash :tangle "DotFiles/.bashrc" + if [ -f "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" ]; then + GIT_PROMPT_ONLY_IN_REPO=1 + source "$HOME/bin/thirdparty/bash-git-prompt/gitprompt.sh" + fi +#+end_src * ZSH Related ** ~/.config/zsh/.zshrc #+begin_src bash :tangle "~/.config/zsh/.zshrc"