aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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