DEV Community

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

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]* *//')
}