keychain: Fix module parsing in Nushell integration

This commit is contained in:
Greg Hellings 2026-01-14 14:15:53 -06:00 committed by Austin Horstman
parent e8e0f53079
commit 0b24f3a487

View file

@ -113,7 +113,7 @@ in
eval "$(SHELL=zsh ${shellCommand})"
'';
programs.nushell.extraConfig = mkIf cfg.enableNushellIntegration ''
let keychain_shell_command = (SHELL=bash ${shellCommand}| parse -r '(\w+)=(.*); export \1' | transpose -ird)
let keychain_shell_command = (SHELL=bash ${shellCommand}| parse -r '(\w+)="?(.*?)"?; export \1' | transpose -ird)
if not ($keychain_shell_command|is-empty) {
$keychain_shell_command | load-env
}