summaryrefslogtreecommitdiffstatshomepage
path: root/zsh/wsl.zsh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-03-31 13:52:08 -0500
committerToby Vincent <tobyv13@gmail.com>2021-03-31 13:52:08 -0500
commit787adc7ee1c41a360028aa367734518faa4ff57d (patch)
treeea8e89cab28a07e5b9074d4beea20608cc3693d4 /zsh/wsl.zsh
parent3f30e659a7fb277957a37d7f45199bc119ebdf24 (diff)
feat: simplified winget
Diffstat (limited to 'zsh/wsl.zsh')
-rw-r--r--zsh/wsl.zsh6
1 files changed, 1 insertions, 5 deletions
diff --git a/zsh/wsl.zsh b/zsh/wsl.zsh
index 5df63c1..c7f6631 100644
--- a/zsh/wsl.zsh
+++ b/zsh/wsl.zsh
@@ -3,11 +3,7 @@ hash -d w=/mnt/c/Users/$USER
alias cb=clip.exe
function winget() {
- if [[ "$1" == "install" || "$1" == "upgrade" ]]; then
- powershell.exe -NoProfile -c "gsudo.exe 'winget.exe $@'"
- else
- powershell.exe -NoProfile -c "winget.exe $@"
- fi
+ powershell.exe -NoProfile -c "winget.exe $@" || powershell.exe -NoProfile -c "gsudo.exe 'winget.exe $@'"
}
function wt() {