From 09bc20da60c0a7c6704f995c48838a9d77b549be Mon Sep 17 00:00:00 2001 From: Luis Guilherme Coelho Date: Thu, 26 Sep 2024 11:32:31 -0300 Subject: [PATCH] radio: files: fish: Add function to automatically run guix shell when inside a guix-shell-authorized-directory --- .../radio/files/.config/fish/functions/guix_shell.fish | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 home-environments/radio/files/.config/fish/functions/guix_shell.fish diff --git a/home-environments/radio/files/.config/fish/functions/guix_shell.fish b/home-environments/radio/files/.config/fish/functions/guix_shell.fish new file mode 100644 index 0000000..9ec6dad --- /dev/null +++ b/home-environments/radio/files/.config/fish/functions/guix_shell.fish @@ -0,0 +1,5 @@ +function __guix_shell --on-variable PWD + if test -n (grep -x $PWD ~/.config/guix/shell-authorized-directories) + guix shell + end +end