mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
add a bash git prompt
This commit is contained in:
parent
7a87654bc5
commit
c27456db58
3 changed files with 25 additions and 4 deletions
|
@ -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
|
||||
|
|
16
README.md
16
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 "${@}"
|
|||
```
|
||||
|
||||
|
||||
<a id="orgb181ff8"></a>
|
||||
<a id="org47e392d"></a>
|
||||
|
||||
### ~/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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue