From b06bf1fec394749772e9b6ed4e9e62fb026be7c8 Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Sat, 30 Dec 2023 17:49:07 -0300 Subject: [PATCH] home-environments: radio: Update :home fish abbreviation --- 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 3d40e61..a243454 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-home + echo "~/projects/code/scm/radix/ && $EDITOR home-environments/$(whoami).scm" +end + function edit-system echo "~/projects/code/scm/radix/ && $EDITOR operating-systems/$(hostname).scm" end diff --git a/home-environments/radio.scm b/home-environments/radio.scm index e642361..6d9d52e 100644 --- a/home-environments/radio.scm +++ b/home-environments/radio.scm @@ -346,8 +346,7 @@ (abbreviation (name ":home") (expansion - (format #f "~a/scm/radix && $EDITOR radio.scm" - code-projects))) + (fish-function "edit-home"))) (abbreviation (name ":todo") (expansion "~/areas/organization/todo"))