mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-06 05:14:53 -06:00
feat: add Cursor and Zed editor CLI integration for WSL
Add PATH configuration for Cursor IDE and Zed editor Windows installations, making their CLI tools accessible from WSL environments. Both editors are now available via command line when installed in their default Windows locations.
This commit is contained in:
@@ -98,4 +98,12 @@ end
|
||||
|
||||
## Ensures CLI apps open URLs in the default Windows browser
|
||||
set -gx BROWSER 'powershell.exe /c start'
|
||||
|
||||
# Cursor IDE CLI (Windows installation accessible from WSL)
|
||||
test -x /mnt/c/Users/Xevion/AppData/Local/Programs/cursor/resources/app/bin/cursor && \
|
||||
fish_add_path /mnt/c/Users/Xevion/AppData/Local/Programs/cursor/resources/app/bin
|
||||
|
||||
# Zed Editor CLI (Windows installation accessible from WSL)
|
||||
test -x /mnt/c/Users/Xevion/AppData/Local/Programs/Zed/bin/zed && \
|
||||
fish_add_path /mnt/c/Users/Xevion/AppData/Local/Programs/Zed/bin
|
||||
{{- end }}
|
||||
|
||||
@@ -101,6 +101,14 @@ fi
|
||||
|
||||
## Ensures CLI apps open URLs in the default Windows browser (Chrome/Firefox/etc) instead of a CLI browser
|
||||
export BROWSER='powershell.exe /c start'
|
||||
|
||||
# Cursor IDE CLI (Windows installation accessible from WSL)
|
||||
[ -x /mnt/c/Users/Xevion/AppData/Local/Programs/cursor/resources/app/bin/cursor ] && \
|
||||
export PATH="$PATH:/mnt/c/Users/Xevion/AppData/Local/Programs/cursor/resources/app/bin"
|
||||
|
||||
# Zed Editor CLI (Windows installation accessible from WSL)
|
||||
[ -x /mnt/c/Users/Xevion/AppData/Local/Programs/Zed/bin/zed ] && \
|
||||
export PATH="$PATH:/mnt/c/Users/Xevion/AppData/Local/Programs/Zed/bin"
|
||||
{{- end }}
|
||||
|
||||
# dotnet
|
||||
|
||||
Reference in New Issue
Block a user