keychain: Fix module parsing in Nushell integration
This commit is contained in:
parent
e8e0f53079
commit
0b24f3a487
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue