From 56d68e92dc13d0dce4547c80c330c80fe075b59a Mon Sep 17 00:00:00 2001 From: citrixscu <52132984+citrixscu@users.noreply.github.com> Date: Sat, 2 Mar 2024 08:18:07 -0800 Subject: [PATCH] fix: check for directory, not command (#991) --- dx/usr/share/fish/vendor_conf.d/brew.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dx/usr/share/fish/vendor_conf.d/brew.fish b/dx/usr/share/fish/vendor_conf.d/brew.fish index a42e0b26897..7bb9497c0b3 100644 --- a/dx/usr/share/fish/vendor_conf.d/brew.fish +++ b/dx/usr/share/fish/vendor_conf.d/brew.fish @@ -1 +1 @@ -command -v brew >/dev/null 2>&1 && status --is-interactive && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" +[ -d /home/linuxbrew/.linuxbrew ] && status --is-interactive && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"