radio: files: fish: Add function to automatically run guix shell when inside a guix-shell-authorized-directory

impermanence
Luis Guilherme Coelho 2024-09-26 11:32:31 -03:00
parent 79338c28b1
commit 09bc20da60
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 5 additions and 0 deletions

View File

@ -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