From 660181d318e628e9c671bebff987678c10d11189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luna=20=C5=9Awi=C4=85tek?= Date: Thu, 26 Oct 2023 14:29:30 +0200 Subject: [PATCH] fix alias doas --- .zsh/aliases.zsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.zsh/aliases.zsh b/.zsh/aliases.zsh index 553e2d6..8bafd84 100644 --- a/.zsh/aliases.zsh +++ b/.zsh/aliases.zsh @@ -20,12 +20,15 @@ alias \ gres='git restore' \ gs='git status' \ gst='git stash' \ - hx='helix' \ - sudo='doas' + hx='helix' alias history='fc -l 0' alias ytdlp='yt-dlp `xclip -o`' alias 'sudo -i'='sudo su -' alias 'cls'='clear' alias 'rsyncA'='rsync -azzP' -alias wgetx='wget `xclip -o`' \ No newline at end of file +alias wgetx='wget `xclip -o`' + +if iscmd doas; then + alias sudo='doas' +fi \ No newline at end of file