From 076ea43eafb8080a1c7a7c8907c3a5c008ac04d8 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Fri, 9 Feb 2024 14:45:27 +0100 Subject: [PATCH] fix: whonix uwt git command not found --- files/sh/.config/sh/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/sh/.config/sh/shrc b/files/sh/.config/sh/shrc index d48a68f..a9133e1 100644 --- a/files/sh/.config/sh/shrc +++ b/files/sh/.config/sh/shrc @@ -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.