mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-16 16:11:41 -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:
@@ -39,6 +39,18 @@ Set-Alias -Name ch -Value chezmoi
|
||||
function cha { chezmoi apply --interactive }
|
||||
function chlg { lazygit --path {{ .chezmoi.config.sourceDir }} }
|
||||
|
||||
# ----------------------
|
||||
# Windows Terminal
|
||||
# ----------------------
|
||||
# Launch Windows Terminal in current directory
|
||||
function wt {
|
||||
if ($args.Count -eq 0) {
|
||||
wt.exe -w 0 sp wsl --cd $PWD.Path
|
||||
} else {
|
||||
wt.exe -w 0 $args wsl --cd $PWD.Path
|
||||
}
|
||||
}
|
||||
|
||||
# ----------------------
|
||||
# Git Aliases
|
||||
# ----------------------
|
||||
|
||||
Reference in New Issue
Block a user