diff options
author | Starfall <us@starfall.systems> | 2021-06-15 20:34:14 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-06-15 20:34:14 -0500 |
commit | 26136f03437c001d77eb58e2b83d7fc10c49876a (patch) | |
tree | 9728a500712839ac4058648496163262d81b6c9e /.config | |
parent | c25a49187c143e2bbf10522e5f3b5d5466e41601 (diff) |
zsh: add sudo alias for windows
Diffstat (limited to '.config')
-rw-r--r-- | .config/zsh/.zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index c6c0e89..7f0697a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -86,6 +86,10 @@ if command -v gpg2 &> /dev/null; then alias gpg='gpg2' fi +if [[ "$OSTYPE" == 'cygwin' ]]; then + alias sudo='cygstart --action=runas' +fi + # collapse spaces into tabs in-place # spacetotab <FILE> [WIDTH=4] function spacetotab () { |