DEV Community

Discussion on: What do you Google EVERY. SINGLE. TIME. and never just memorize?

Collapse
 
ttiger profile image
Tony
  • Creating SSH Keys
Collapse
 
kunde21 profile image
Chad Kunde

I was helping someone with this earlier this year. Ended up creating a helper for it:

gist.github.com/Kunde21/3633e1e9ef...

Collapse
 
kyslik profile image
Martin Kiesel

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

# fh - repeat history
fh() {
  print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//')
}