mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
keychain: Fix module parsing in Nushell integration
This commit is contained in:
committed by
Austin Horstman
parent
e8e0f53079
commit
0b24f3a487
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user