This my snippet alias hst="history 1 -1 | cut -c 8- | uniq | fzf ". when I run hst The output is
$ ~ hst (the output from hst) $ This is what I want
$ ~ hst $ (the output from hst) Example
$ ~ hst vi .zshrc $ should be
$ ~ hst $ vi .zshrc How to fix this? (or enhance the script)
$(hst)oreval $(hst)would just directly execute whatever hst outputs; would skip a step.eval "$(hst)"in general. And you wouldn't get the opportunity to edit.