From 5069d92f3f65ab49bf5f75403b2dd3afa6cc4145 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 7 Jan 2026 17:22:17 +0000 Subject: [PATCH] [zed] Update config --- macos/.config/homebrew/Brewfile | 1 + zed/.config/shell-common/99_zed.sh | 19 ++++++++++++------- zed/.config/zed/tasks.json | 1 + 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 zed/.config/zed/tasks.json 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 @@ +[]