zsh/aliases: add another check before adding nixGL

This commit is contained in:
surtur 2022-07-08 02:38:16 +02:00
parent 162c7022be
commit 67e2a1427f
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -37,5 +37,7 @@
alias keyz='ssh-add -l'
alias gitagain='GIT_COMMITTER_DATE="$(git show -s --format=%ci HEAD)" git commit -v --amend'
[ -z "$IN_NIX_SHELL" ] && {
alias gor='nixGLIntel go run'
if command -v nixGLIntel &> /dev/null; then
alias gor='nixGLIntel go run'
fi
}