From 26136f03437c001d77eb58e2b83d7fc10c49876a Mon Sep 17 00:00:00 2001 From: Starfall Date: Tue, 15 Jun 2021 20:34:14 -0500 Subject: zsh: add sudo alias for windows --- .config/zsh/.zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.config') 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 [WIDTH=4] function spacetotab () { -- cgit