aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2026-07-03 13:20:33 +0200
committerKarel Kočí <cynerd@email.cz>2026-07-03 13:20:33 +0200
commit62348187455c0e10257a7a3a899c5562ebbf1db5 (patch)
tree59361fe7888b66f5b8eb53d4ad1a772123673650
parent30f01e0671ad7f6646e0d1fc4620d5bc69d39be0 (diff)
downloadshellrc-master.tar.gz
shellrc-master.tar.bz2
shellrc-master.zip
dev: add gx as a guix utilityHEADmaster
-rw-r--r--shellrc.d/dev10
1 files changed, 10 insertions, 0 deletions
diff --git a/shellrc.d/dev b/shellrc.d/dev
index c394a8a..5db2fcd 100644
--- a/shellrc.d/dev
+++ b/shellrc.d/dev
@@ -88,3 +88,13 @@ if command -v nix 2>/dev/null >&2; then
nix run ".?submodules=1#$package" -- "$@"
}
fi
+
+if command -v guix 2>/dev/null >&2; then
+ gx() {
+ if [[ -f ./channels.scm ]]; then
+ guix time-machine -C ./channels.scm -- "$@"
+ else
+ guix "$@"
+ fi
+ }
+fi