mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 10:58:14 +00:00
[zed] Update config
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
1
zed/.config/zed/tasks.json
Normal file
1
zed/.config/zed/tasks.json
Normal file
@@ -0,0 +1 @@
|
||||
[]
|
||||
Reference in New Issue
Block a user