From 305765839172dff887e25aa971a304fc5d941ea1 Mon Sep 17 00:00:00 2001 From: anemofilia Date: Fri, 11 Aug 2023 09:55:35 -0300 Subject: [PATCH] feat: add fish abbreviations for some projects --- files/fish/fish_abbreviations | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/files/fish/fish_abbreviations b/files/fish/fish_abbreviations index 85ed7a7..8174c8c 100644 --- a/files/fish/fish_abbreviations +++ b/files/fish/fish_abbreviations @@ -6,11 +6,20 @@ abbr --add tf --set-cursor 'setsid -f % >/dev/null 2>&1 & disown' abbr --add zxz --set-cursor 'curl -F "file=@%" https://0.vern.cc | xsel -b' 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" +# Projects +set -l PROJECTS "$HOME/projects" +abbr --add @guix --position anywhere "$PROJECTS/guile/guix" +abbr --add @punk --position anywhere "$PROJECTS/cpp/Punk" +abbr --add @tomato --position anywhere "$PROJECTS/python/tomato-engine" + +## Radix +set -l RADIX_REPO "$PROJECTS/guile/radix" 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" + +# System and Home +abbr --add !system --position anywhere "doas guix system reconfigure /etc/config.scm" +abbr --add !home --position anywhere "guix home reconfigure $RADIX_REPO/radio.scm"