Make wpwd an alias for WSL

This commit is contained in:
Mylloon 2023-09-07 19:01:09 +02:00
parent d0c7a181b8
commit 29ced8354a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 2 additions and 1 deletions

View file

@ -2,5 +2,4 @@ abbr d "explorer.exe ."
abbr unison "unison ~/src ~/u_dest" abbr unison "unison ~/src ~/u_dest"
abbr vs "code ." abbr vs "code ."
abbr wgcc "x86_64-w64-mingw32-gcc" abbr wgcc "x86_64-w64-mingw32-gcc"
abbr wpwd 'echo "\\\\\wsl.localhost\\Arch$(pwd | tr / \\\ 2> /dev/null)"'
abbr topgrade "topgrade -y -c" abbr topgrade "topgrade -y -c"

View file

@ -0,0 +1 @@
alias wpwd "echo '\\\\\wsl.localhost\\Arch$(pwd | tr / \\\ 2> /dev/null)'"

View file

@ -115,6 +115,7 @@ sync-wsl:
# Fish # Fish
@$(WGET) $(REPO_SRC)/.config/fish/config_wsl.fish -O $(HOME)/.config/fish/config.fish @$(WGET) $(REPO_SRC)/.config/fish/config_wsl.fish -O $(HOME)/.config/fish/config.fish
@$(CURL) $(REPO_SRC)/.config/fish/conf.d/abbr_wsl.fish >> $(HOME)/.config/fish/conf.d/abbr.fish @$(CURL) $(REPO_SRC)/.config/fish/conf.d/abbr_wsl.fish >> $(HOME)/.config/fish/conf.d/abbr.fish
@$(CURL) $(REPO_SRC)/.config/fish/conf.d/alias_wsl.fish >> $(HOME)/.config/fish/conf.d/alias.fish
# Unison # Unison
@mkdir -p $(HOME)/.unison @mkdir -p $(HOME)/.unison