about summary refs log tree commit diff
path: root/.config/zsh
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2021-06-15 20:34:14 -0500
committerStarfall <us@starfall.systems>2021-06-15 20:34:14 -0500
commit26136f03437c001d77eb58e2b83d7fc10c49876a (patch)
tree9728a500712839ac4058648496163262d81b6c9e /.config/zsh
parentc25a49187c143e2bbf10522e5f3b5d5466e41601 (diff)
zsh: add sudo alias for windows
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc4
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 () {