fix(fish): test if ssh key file exists

This commit is contained in:
uku 2024-07-29 10:32:15 +02:00
parent 429d4d49de
commit ca71ddac8c
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o

View file

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