diff options
Diffstat (limited to '')
-rw-r--r-- | .config/zsh/alias.zsh | 2 | ||||
-rwxr-xr-x | .local/bin/install-port | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index 86ad315..783a780 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -27,7 +27,7 @@ alias ga='git add' alias gco='git commit -m' alias gpp='git push' alias gpo='git push origin' -alias startdocker='sudo service vboxnet restart && docker-machine start docker-home' +alias startdocker='doas service vboxnet restart && docker-machine start docker-home' alias stopdocker='docker-machine stop docker-home' alias envdocker='eval `docker-machine env docker-home`' alias cat='bat' diff --git a/.local/bin/install-port b/.local/bin/install-port index ea8c1f1..8b99de3 100755 --- a/.local/bin/install-port +++ b/.local/bin/install-port @@ -7,14 +7,14 @@ use Term::ANSIColor; sub upgrdports { my $upgrd_nbr_cmd = "/usr/sbin/pkg version -l '<' | /usr/bin/wc -l | /usr/bin/awk '{print \$1}'"; if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/sbin/pkg', 'update' ) != 0) { exit; } if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/sbin/portsnap', 'fetch', 'update' @@ -61,7 +61,7 @@ sub upgrdports { } if (system('/usr/local/bin/dash', '-c', - '/usr/local/bin/sudo /usr/local/sbin/portmaster -dya --no-confirm') == 0) { + '/usr/local/bin/doas /usr/local/sbin/portmaster -dya --no-confirm') == 0) { my $failed_nbr = `$upgrd_nbr_cmd`; chomp $failed_nbr; my $diff_nbr = $upgrd_nbr - $failed_nbr; @@ -90,15 +90,15 @@ sub configport { my $port = $_[0]; my $port_basename = $_[1]; if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/bin/make', 'config-recursive') == 0) { if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/bin/make', 'config-recursive') == 0) { if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/bin/make', 'config-recursive') == 0) { } @@ -144,7 +144,7 @@ sub installport { my $port = $_[0]; my $port_basename = $_[1]; if (system( - '/usr/local/bin/sudo', + '/usr/local/bin/doas', '/usr/bin/make', 'install', 'clean' |