Skip to content

Migration to new Mac #3259

Answered by junegunn
Blackjacx asked this question in Q&A
Discussion options

You must be logged in to vote

fzf is a filter program, it doesn't have a database. For zsh, CTRL-R binding runs fc -rl 1 to get the command history. So make sure that it works as expected on the new machine.

selected=( $(fc -rl 1 | awk '{ cmd=$0; sub(/^[ \t]*[0-9]+\**[ \t]+/, "", cmd); if (!seen[cmd]++) print $0 }' |

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by junegunn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants