From 6625ef56d1e149ffa02b1ffe1a3f0eb9b86188f7 Mon Sep 17 00:00:00 2001 From: citrixscu Date: Fri, 1 Mar 2024 16:42:06 -0800 Subject: [PATCH] fix: check for directory, not command --- 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)"