Merge pull request #1499 from jmthvt/feature/unalias-gh

Check gh command exists before setting git gh alias
This commit is contained in:
Nils Winkler
2020-04-27 08:40:57 +02:00
committed by GitHub

View File

@@ -103,7 +103,11 @@ alias gsw="git switch"
alias gswm="git switch master"
alias gswc="git switch --create"
alias gswt="git switch --track"
alias gh='cd "$(git rev-parse --show-toplevel)"'
# Git home
alias ghm='cd "$(git rev-parse --show-toplevel)"'
if ! _command_exists gh; then
alias gh='ghm'
fi
# Show untracked files
alias gu='git ls-files . --exclude-standard --others'