aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--zsh/wsl.zsh8
-rw-r--r--zshrc7
2 files changed, 6 insertions, 9 deletions
diff --git a/zsh/wsl.zsh b/zsh/wsl.zsh
index a4c4ef8..70b8d24 100644
--- a/zsh/wsl.zsh
+++ b/zsh/wsl.zsh
@@ -1,6 +1,8 @@
-export PATH="${HOME}/.local/bin.win:$PATH"
+path=( $path $HOME/.local/bin $HOME/.dotnet/tools )
hash -d w=/mnt/c/Users/$USER
alias cb=clip.exe
+alias wsl=wsl.exe
+alias wt=wt.exe
function winget() {
cmd="winget.exe $1"
@@ -25,10 +27,6 @@ function winget() {
powershell.exe -NoProfile -c "$cmd"
}
-function wt() {
- powershell.exe -NoProfile -c "wt.exe $@"
-}
-
function r-copy() {
if ((REGION_ACTIVE)) then
zle copy-region-as-kill
diff --git a/zshrc b/zshrc
index ebe836c..5f5c743 100644
--- a/zshrc
+++ b/zshrc
@@ -1,11 +1,10 @@
+# Path
+path=( $path $HOME/.local/bin $HOME/.dotnet/tools )
+
# Exports
export ZSH_BASE="${HOME}/dotfiles"
export FZF_BASE="${HOME}/dotfiles/fzf"
-# Path
-export PATH="$PATH:${HOME}/.local/bin"
-export PATH="$PATH:${HOME}/.dotnet/tools"
-
# Directory hashtable
hash -d .=${HOME}/dotfiles
hash -d s=${HOME}/Sync