Skip to content

Commit

Permalink
Added Git prompt script for manual installation
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Aug 13, 2024
1 parent b23db2d commit f7a6ac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ fi
# be sourced separately on some Linux distributions.
if ! command -v __git_ps1 &>/dev/null
then
_source_one /usr/share/git/completion/git-prompt.sh /usr/share/git-core/contrib/completion/git-prompt.sh
_source_one $HOME/Documents/projects/git/contrib/completion/git-prompt.sh /usr/share/git/completion/git-prompt.sh /usr/share/git-core/contrib/completion/git-prompt.sh
fi

PS1='[\u@\h \w]\$ '
Expand Down
3 changes: 2 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ rr()

if ! command -v __git_ps1 &>/dev/null
then
. /usr/lib/git-core/git-sh-prompt &>/dev/null \
. ~/Documents/projects/git/contrib/completion/git-prompt.sh &>/dev/null \
|| . /usr/lib/git-core/git-sh-prompt &>/dev/null \
|| . /usr/share/git-core/contrib/completion/git-prompt.sh &>/dev/null \
|| . /usr/share/git/completion/git-prompt.sh &>/dev/null \
|| . /usr/share/git/git-prompt.sh &>/dev/null
Expand Down

0 comments on commit f7a6ac0

Please sign in to comment.