home-environments: radio: Update :system fish abbreviation to edit the declaration of whatever system is currently in use
parent
52f1df730e
commit
e8678b689d
|
@ -42,6 +42,10 @@ function bang-bang-k
|
||||||
echo $arr[$k]
|
echo $arr[$k]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function edit-system
|
||||||
|
echo "~/projects/code/scm/radix/ && $EDITOR operating-systems/$(hostname).scm"
|
||||||
|
end
|
||||||
|
|
||||||
function bang-dollar
|
function bang-dollar
|
||||||
string replace -ra '.* ' '' "$history[1]"
|
string replace -ra '.* ' '' "$history[1]"
|
||||||
end
|
end
|
||||||
|
|
|
@ -342,8 +342,7 @@
|
||||||
(abbreviation
|
(abbreviation
|
||||||
(name ":system")
|
(name ":system")
|
||||||
(expansion
|
(expansion
|
||||||
(format #f "~a/scm/radix && $EDITOR buer.scm"
|
(fish-function "edit-system")))
|
||||||
code-projects)))
|
|
||||||
(abbreviation
|
(abbreviation
|
||||||
(name ":home")
|
(name ":home")
|
||||||
(expansion
|
(expansion
|
||||||
|
|
Loading…
Reference in New Issue