Created
July 20, 2019 06:04
-
-
Save hacolab/ca925439cfa45f0c3880399d13308484 to your computer and use it in GitHub Desktop.
This file contains 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
# USAGE: source "$0" on c-shell | |
set select_command=`history -r \ | |
| fzf-tmux --no-sort --nth 3.. -d 90% \ | |
| tr '\t' ' ' \ | |
| sed -e 's/^[ ]*[0-9]*[ ]*[0-9:]*//'` | |
if ( "$select_command" == "" ) exit 0 | |
eval $select_command | |
unset select_command | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment