diff --git a/fish/.config/fish/functions/se.fish b/fish/.config/fish/functions/se.fish index fb1f8ac..2af7d4a 100644 --- a/fish/.config/fish/functions/se.fish +++ b/fish/.config/fish/functions/se.fish @@ -1,3 +1,3 @@ -function se --wraps=sudoedit --description 'alias se=sudoedit' - sudoedit $argv +function se --wraps=doasedit --description 'alias se=doasedit' + doasedit $argv end diff --git a/fish/.config/fish/functions/systemctl.fish b/fish/.config/fish/functions/systemctl.fish index 59c9184..3c5c03a 100644 --- a/fish/.config/fish/functions/systemctl.fish +++ b/fish/.config/fish/functions/systemctl.fish @@ -1,4 +1,4 @@ -function systemctl --description 'Wraps privileged and user systemctl commands to use sudo when necessary' -w systemctl +function systemctl --description 'Wraps privileged and user systemctl commands to use doas when necessary' -w systemctl set -l user_commands \ list-units list-unit-files list-jobs list-timers \ list-sockets list-dependencies list-machines \ @@ -16,6 +16,6 @@ function systemctl --description 'Wraps privileged and user systemctl commands t if contains -- --user $argv; or not contains -- $argv[1] $root_commands command systemctl $argv else - command sudo systemctl $argv + command doas systemctl $argv end end