diff options
| author | Paul Buetow <paul@buetow.org> | 2025-04-20 22:59:21 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-04-20 22:59:21 +0300 |
| commit | 0cd82c9385746410ad85e7a4e0b737404dbf0410 (patch) | |
| tree | 369ac93e3579896603f8f9185680e1f0f7a9c1c2 | |
| parent | 072d07447647ed4a8191a75e873762ad0b0c9275 (diff) | |
add doas
| -rw-r--r-- | dotfiles/Rexfile | 2 | ||||
| -rw-r--r-- | 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' |
