From 67e2a1427fbba3c72a8ac64d9268cb8eb05aef90 Mon Sep 17 00:00:00 2001 From: surtur Date: Fri, 8 Jul 2022 02:38:16 +0200 Subject: [PATCH] zsh/aliases: add another check before adding nixGL --- .zsh/aliases.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh/aliases.zsh b/.zsh/aliases.zsh index 4733de4..57b8d0f 100644 --- a/.zsh/aliases.zsh +++ b/.zsh/aliases.zsh @@ -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 }