home-environments: radio: Update :system fish abbreviation to edit the declaration of whatever system is currently in use

pull/1/head
Luis Guilherme Coelho 2023-12-30 17:12:51 -03:00
parent 52f1df730e
commit e8678b689d
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
2 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,10 @@ function bang-bang-k
echo $arr[$k]
end
function edit-system
echo "~/projects/code/scm/radix/ && $EDITOR operating-systems/$(hostname).scm"
end
function bang-dollar
string replace -ra '.* ' '' "$history[1]"
end

View File

@ -342,8 +342,7 @@
(abbreviation
(name ":system")
(expansion
(format #f "~a/scm/radix && $EDITOR buer.scm"
code-projects)))
(fish-function "edit-system")))
(abbreviation
(name ":home")
(expansion