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)) #:recursive? #t))
(define custom-functions (define custom-functions
(local-file (local-file "../../../files/fish/functions/fish_custom_functions.fish"))
"../../../files/fish/functions/fish_custom_functions.fish"))
(define config (define config
(local-file "../../../files/fish/conf.d" (local-file "../../../files/fish/conf.d"

View File

@ -4,6 +4,7 @@
#:export (user-dirs #:export (user-dirs
extensions extensions
channels channels
config
quick-edit quick-edit
bookmarks bookmarks
guix guix
@ -94,6 +95,21 @@
(expansion (expansion
(fish-function "bang-star"))))) (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 (define guix
(list (abbreviation (list (abbreviation
(name '!dgen) (name '!dgen)