mirror of
https://github.com/Xevion/dotfiles.git
synced 2026-01-31 04:24:10 -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:
@@ -1044,4 +1044,15 @@ def maestroOn [] {
|
||||
bluetoothctl unblock "AC:BF:71:66:FE:B2"
|
||||
bluetoothctl connect "AC:BF:71:66:FE:B2"
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{- if .wsl }}
|
||||
# Launch Windows Terminal in current directory
|
||||
def wt [...args: string] {
|
||||
if ($args | is-empty) {
|
||||
^wt.exe -w 0 sp wsl --cd (pwd)
|
||||
} else {
|
||||
^wt.exe -w 0 ...$args wsl --cd (pwd)
|
||||
}
|
||||
}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user