Skip to content

Instantly share code, notes, and snippets.

@hacolab
Created July 20, 2019 06:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacolab/ca925439cfa45f0c3880399d13308484 to your computer and use it in GitHub Desktop.
Save hacolab/ca925439cfa45f0c3880399d13308484 to your computer and use it in GitHub Desktop.
# 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