From e8678b689d65efaa8162e3380fc6220813ac5c6a Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sat, 30 Dec 2023 17:12:51 -0300 Subject: [PATCH] home-environments: radio: Update :system fish abbreviation to edit the declaration of whatever system is currently in use --- files/fish/functions/fish_custom_functions.fish | 4 ++++ home-environments/radio.scm | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/files/fish/functions/fish_custom_functions.fish b/files/fish/functions/fish_custom_functions.fish index 4ea8c90..3d40e61 100644 --- a/files/fish/functions/fish_custom_functions.fish +++ b/files/fish/functions/fish_custom_functions.fish @@ -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 diff --git a/home-environments/radio.scm b/home-environments/radio.scm index 6057836..e642361 100644 --- a/home-environments/radio.scm +++ b/home-environments/radio.scm @@ -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