mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[macos] Fix Zed detection
This commit is contained in:
@@ -61,10 +61,13 @@ if [ -x "$(command -v aerospace)" ] && [ -x "$(command -v fzf)" ]; then
|
|||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Alias for Zed editor if installed
|
# Detect Zed installation in common locations
|
||||||
if [ -d "$HOME/Applications/Zed.app" ] || [ -d "/Applications/Zed.app" ]; then
|
for zed_path in "$HOME/Applications/Zed.app" "/Applications/Zed.app"; do
|
||||||
alias zed="$HOME/Applications/Zed.app/Contents/MacOS/cli"
|
if [ -d "$zed_path" ]; then
|
||||||
fi
|
alias zed="$zed_path/Contents/MacOS/cli"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
# Use Tailscale binary if installed via app
|
# Use Tailscale binary if installed via app
|
||||||
if [ -d "/Applications/Tailscale.app" ]; then
|
if [ -d "/Applications/Tailscale.app" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user