feat: add autocd to :system and :home abbreviations in fish

keyring
anemofilia 2023-08-08 15:17:21 -03:00
parent ec052c822e
commit 5f5f790463
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ abbr --add mpv --position anywhere --set-cursor=! 'mpv "!"'
set -l RADIX_REPO "$HOME/projects/guile/radix" set -l RADIX_REPO "$HOME/projects/guile/radix"
abbr --add !system --position anywhere "doas guix system reconfigure /etc/config.scm" 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 !home --position anywhere "guix home reconfigure $RADIX_REPO/radio.scm"
abbr --add :system --position anywhere "$EDITOR /etc/config.scm" abbr --add :system --position anywhere "$RADIX_REPO && $EDITOR /etc/config.scm"
abbr --add :home --position anywhere "$EDITOR $RADIX_REPO/radio.scm" abbr --add :home --position anywhere "$RADIX_REPO && $EDITOR radio.scm"
abbr --add @radix --position anywhere "$RADIX_REPO" abbr --add @radix --position anywhere "$RADIX_REPO"
abbr --add @files --position anywhere "$RADIX_REPO/files" abbr --add @files --position anywhere "$RADIX_REPO/files"
abbr --add @modules --position anywhere "$RADIX_REPO/modules/radix" abbr --add @modules --position anywhere "$RADIX_REPO/modules/radix"