From 0cd82c9385746410ad85e7a4e0b737404dbf0410 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 20 Apr 2025 22:59:21 +0300 Subject: add doas --- dotfiles/Rexfile | 2 +- dotfiles/fish/conf.d/config.fish | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dotfiles/Rexfile b/dotfiles/Rexfile index 2488a09..d3c0b51 100644 --- a/dotfiles/Rexfile +++ b/dotfiles/Rexfile @@ -91,7 +91,7 @@ task 'pkg_freebsd', sub { desc 'Install packages on Fedora Linux'; task 'pkg_fedora', sub { my @pkgs = qw/ - zsh-autosuggestions + opendoas fd-find nodejs-bash-language-server fortune-mod diff --git a/dotfiles/fish/conf.d/config.fish b/dotfiles/fish/conf.d/config.fish index 5abc0e6..9319a0a 100644 --- a/dotfiles/fish/conf.d/config.fish +++ b/dotfiles/fish/conf.d/config.fish @@ -3,7 +3,12 @@ fish_vi_key_bindings # Add paths to PATH set -U fish_user_paths ~/bin ~/go/bin ~/.cargo/bin $fish_user_paths -abbr -a s sudo +if command -q -v doas >/dev/null + abbr -a s doas +else + abbr -a s sudo +end + # Git stuff abbr -a gl 'git log --pretty=oneline --graph --decorate --all' -- cgit v1.2.3