fix: whonix uwt git command not found

This commit is contained in:
Ben Grande 2024-02-09 14:45:27 +01:00
parent 07c7d1ed95
commit 076ea43eaf
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -121,6 +121,10 @@ fi
## }}}
## {{{ Git
if has git; then
## Whonix UWT wrapper circumvents the command existence check.
if test -f /usr/share/whonix/marker; then
git -v >/dev/null 2>&1 || return
fi
alias g="git"
alias gcd='cd "$(git rev-parse --show-toplevel)"'
## Use git aliases with 'g' prefix.