diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-03-31 13:52:08 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-03-31 13:52:08 -0500 |
commit | 787adc7ee1c41a360028aa367734518faa4ff57d (patch) | |
tree | ea8e89cab28a07e5b9074d4beea20608cc3693d4 /zsh/wsl.zsh | |
parent | 3f30e659a7fb277957a37d7f45199bc119ebdf24 (diff) |
feat: simplified winget
Diffstat (limited to 'zsh/wsl.zsh')
-rw-r--r-- | zsh/wsl.zsh | 6 |
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() { |