From 5f5f7904631290ed823c636bd9062c68ad82c86e Mon Sep 17 00:00:00 2001 From: anemofilia Date: Tue, 8 Aug 2023 15:17:21 -0300 Subject: [PATCH] feat: add autocd to :system and :home abbreviations in fish --- files/fish/fish_abbreviations | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/fish/fish_abbreviations b/files/fish/fish_abbreviations index d97a5d0..3beb25d 100644 --- a/files/fish/fish_abbreviations +++ b/files/fish/fish_abbreviations @@ -6,8 +6,8 @@ abbr --add mpv --position anywhere --set-cursor=! 'mpv "!"' set -l RADIX_REPO "$HOME/projects/guile/radix" abbr --add !system --position anywhere "doas guix system reconfigure /etc/config.scm" abbr --add !home --position anywhere "guix home reconfigure $RADIX_REPO/radio.scm" -abbr --add :system --position anywhere "$EDITOR /etc/config.scm" -abbr --add :home --position anywhere "$EDITOR $RADIX_REPO/radio.scm" +abbr --add :system --position anywhere "$RADIX_REPO && $EDITOR /etc/config.scm" +abbr --add :home --position anywhere "$RADIX_REPO && $EDITOR radio.scm" abbr --add @radix --position anywhere "$RADIX_REPO" abbr --add @files --position anywhere "$RADIX_REPO/files" abbr --add @modules --position anywhere "$RADIX_REPO/modules/radix"