home-environments: radio: Add fish abbreviations to manage guix configuration

sioyek
Luis Guilherme Coelho 2024-02-08 00:33:28 -03:00
parent 7f1046fe39
commit faf6f32559
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
2 changed files with 17 additions and 2 deletions

View File

@ -9,8 +9,7 @@
#:recursive? #t))
(define custom-functions
(local-file
"../../../files/fish/functions/fish_custom_functions.fish"))
(local-file "../../../files/fish/functions/fish_custom_functions.fish"))
(define config
(local-file "../../../files/fish/conf.d"

View File

@ -4,6 +4,7 @@
#:export (user-dirs
extensions
channels
config
quick-edit
bookmarks
guix
@ -94,6 +95,21 @@
(expansion
(fish-function "bang-star")))))
(define config
(let* ((radix '~/areas/code/scm/radix/)
(user (string->symbol (getlogin)))
(os (string->symbol (gethostname))))
(list (abbreviation
(name (at user))
(position 'anywhere)
(expansion
(format #f "~a/home-environments/~a" radix user)))
(abbreviation
(name (at os))
(position 'anywhere)
(expansion
(format #f "~a/operating-systems/~a" radix os))))))
(define guix
(list (abbreviation
(name '!dgen)