Make wpwd an alias for WSL
This commit is contained in:
parent
d0c7a181b8
commit
29ced8354a
3 changed files with 2 additions and 1 deletions
|
@ -2,5 +2,4 @@ abbr d "explorer.exe ."
|
|||
abbr unison "unison ~/src ~/u_dest"
|
||||
abbr vs "code ."
|
||||
abbr wgcc "x86_64-w64-mingw32-gcc"
|
||||
abbr wpwd 'echo "\\\\\wsl.localhost\\Arch$(pwd | tr / \\\ 2> /dev/null)"'
|
||||
abbr topgrade "topgrade -y -c"
|
||||
|
|
1
.config/fish/conf.d/alias_wsl.fish
Normal file
1
.config/fish/conf.d/alias_wsl.fish
Normal file
|
@ -0,0 +1 @@
|
|||
alias wpwd "echo '\\\\\wsl.localhost\\Arch$(pwd | tr / \\\ 2> /dev/null)'"
|
1
Makefile
1
Makefile
|
@ -115,6 +115,7 @@ sync-wsl:
|
|||
# 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/alias_wsl.fish >> $(HOME)/.config/fish/conf.d/alias.fish
|
||||
|
||||
# Unison
|
||||
@mkdir -p $(HOME)/.unison
|
||||
|
|
Loading…
Reference in a new issue