I was helping someone with this earlier this year. Ended up creating a helper for it:
gist.github.com/Kunde21/3633e1e9ef...
I just ssh-k ↑ in zsh and just list all previous key generation commands or if I am not sure what I am looking for I use fzf
ssh-k
# fh - repeat history fh() { print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') }
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I was helping someone with this earlier this year. Ended up creating a helper for it:
gist.github.com/Kunde21/3633e1e9ef...
I just
ssh-k
↑ in zsh and just list all previous key generation commands or if I am not sure what I am looking for I use fzf