From b4913149154610f395acc7b0ca5ffea6dea5c6a4 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Thu, 25 Jan 2024 20:36:37 +0300 Subject: [PATCH] guix: script to clear PATH --- Guix.org | 4 ++++ bin/scripts/guix-off | 4 ++++ 2 files changed, 8 insertions(+) create mode 100755 bin/scripts/guix-off diff --git a/Guix.org b/Guix.org index 63685d2..0ec9a4b 100644 --- a/Guix.org +++ b/Guix.org @@ -113,6 +113,10 @@ else echo -e "No profile found at path: " $profilePath fi +#+end_src +** Turn off Guix profiles +#+begin_src bash :tangle ~/bin/scripts/guix-off +export PATH=$(echo $PATH | tr ":" "\n" | grep -vE "guix|nix|gnu" | tr "\n" ":") #+end_src * Channels Specifying additional channels. diff --git a/bin/scripts/guix-off b/bin/scripts/guix-off new file mode 100755 index 0000000..e4c2e79 --- /dev/null +++ b/bin/scripts/guix-off @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# [[file:../../Guix.org::*Turn off Guix profiles][Turn off Guix profiles:1]] +export PATH=$(echo $PATH | tr ":" "\n" | grep -vE "guix|nix|gnu" | tr "\n" ":") +# Turn off Guix profiles:1 ends here