diff --git a/macos/.config/homebrew/Brewfile b/macos/.config/homebrew/Brewfile index ad788f1..0baf1f4 100644 --- a/macos/.config/homebrew/Brewfile +++ b/macos/.config/homebrew/Brewfile @@ -68,6 +68,7 @@ cask "viscosity" cask "visual-studio-code" cask "vlc" cask "wireshark-app" +cask "zed" cask "font-input" cask "font-inter" diff --git a/zed/.config/shell-common/99_zed.sh b/zed/.config/shell-common/99_zed.sh index 13fa1fb..8ae4e64 100644 --- a/zed/.config/shell-common/99_zed.sh +++ b/zed/.config/shell-common/99_zed.sh @@ -1,9 +1,14 @@ # Zed specific shell configuration -# Detect Zed installation in common locations -for zed_path in "$HOME/Applications/Zed.app" "/Applications/Zed.app"; do - if [ -d "$zed_path" ]; then - alias zed="$zed_path/Contents/MacOS/cli" - break - fi -done +# Rather than installing or linking the Zed CLI, we define a function that +# locates the Zed application and invokes its CLI directly. +function zed() { + for zed_path in "$HOME/Applications/Zed.app" "/Applications/Zed.app"; do + if [ -d "$zed_path" ]; then + "$zed_path/Contents/MacOS/cli" "$@" + return + fi + done + echo "Zed application not found in common locations." + return 1 +} diff --git a/zed/.config/zed/tasks.json b/zed/.config/zed/tasks.json new file mode 100644 index 0000000..fe51488 --- /dev/null +++ b/zed/.config/zed/tasks.json @@ -0,0 +1 @@ +[]