Created
November 13, 2017 01:20
-
-
Save mikiyaf/c1827e056a8b3fd7a69b20b680c924df to your computer and use it in GitHub Desktop.
fh - repeat history
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fh() { | |
print -z $( ([ -n "$ZSH_NAME" ] && fc -l 1 || history) | fzf +s --tac | sed 's/ *[0-9]* *//') | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment