Update git prompt. Include git-prompt.sh in repo

This commit is contained in:
2020-01-29 08:57:51 +01:00
parent 39add5548b
commit 179f9d96b2
3 changed files with 619 additions and 35 deletions

View File

@@ -14,8 +14,9 @@ export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH"
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"
alias dvim="GIT_WORK_TREE='/home/kuba' GIT_DIR='/home/kuba/.dotfiles.git/' vim"
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then
source /usr/share/git/completion/git-prompt.sh
# Source git prompt
if [ -f ~/scripts/git-prompt.sh ]; then
source ~/scripts/git-prompt.sh
fi
if [ "$(hostname)" == "kubaDesktop" ] || [ "$(hostname)" == "kubaArch-Laptop" ]; then