fix(fish): test if ssh key file exists
This commit is contained in:
parent
429d4d49de
commit
ca71ddac8c
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,9 @@
|
|||
enable = true;
|
||||
|
||||
interactiveShellInit = with pkgs; ''
|
||||
if test -f ~/.ssh/id_ed25519
|
||||
ssh-add -l | grep -q (ssh-keygen -lf ~/.ssh/id_ed25519) || ssh-add ~/.ssh/id_ed25519
|
||||
end
|
||||
|
||||
${lib.getExe starship} init fish | source
|
||||
${lib.getExe nix-your-shell} fish | source
|
||||
|
|
Loading…
Reference in a new issue