mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 02:24:11 -06:00
feat: add Windows Terminal helper function across all shells
Add `wt` function to launch Windows Terminal with WSL in current directory across Bash, Fish, Nushell, and PowerShell. The function supports passing additional arguments while maintaining the current working directory context.
This commit is contained in:
@@ -109,6 +109,15 @@ export BROWSER='powershell.exe /c start'
|
||||
# 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"
|
||||
|
||||
# Launch Windows Terminal in current directory
|
||||
wt() {
|
||||
if [ $# -eq 0 ]; then
|
||||
wt.exe -w 0 sp wsl --cd "$(pwd)"
|
||||
else
|
||||
wt.exe -w 0 "$@" wsl --cd "$(pwd)"
|
||||
fi
|
||||
}
|
||||
{{- end }}
|
||||
|
||||
# dotnet
|
||||
|
||||
Reference in New Issue
Block a user