feat: add fish abbreviations for some projects

pull/1/head
anemofilia 2023-08-11 09:55:35 -03:00
parent a27e65a9d3
commit 3057658391
No known key found for this signature in database
GPG Key ID: 5A8F3D62C87A2B33
1 changed files with 12 additions and 3 deletions

View File

@ -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 zxz --set-cursor 'curl -F "file=@%" https://0.vern.cc | xsel -b'
abbr --add mpv --position anywhere --set-cursor 'mpv "%"' abbr --add mpv --position anywhere --set-cursor 'mpv "%"'
set -l RADIX_REPO "$HOME/projects/guile/radix" # Projects
abbr --add !system --position anywhere "doas guix system reconfigure /etc/config.scm" set -l PROJECTS "$HOME/projects"
abbr --add !home --position anywhere "guix home reconfigure $RADIX_REPO/radio.scm" 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 :system --position anywhere "$RADIX_REPO && $EDITOR /etc/config.scm"
abbr --add :home --position anywhere "$RADIX_REPO && $EDITOR 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"
# 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"