From 62348187455c0e10257a7a3a899c5562ebbf1db5 Mon Sep 17 00:00:00 2001 From: Karel Kočí Date: Fri, 3 Jul 2026 13:20:33 +0200 Subject: dev: add gx as a guix utility --- shellrc.d/dev | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'shellrc.d/dev') 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 -- cgit v1.3.1