Re:Show HN: McFly, a smart Bash history search CLI in Rust w...
by the_jeremy on Monday December 03, 2018 @06:27PM
(#18594253)
Minor nitpick: probably better to append to PROMPT_COMMAND, rather than overwriting it.
[ Parent
| on HN ]
Re:Show HN: McFly, a smart Bash history search CLI in Rust w...
by tectonic on Monday December 03, 2018 @06:57PM
(#18594450)
I do actually append to it:
PROMPT_COMMAND="__last_exit=\$?;history -a \$MCFLY_HISTORY;mcfly add --exit \$__last_exit --append-to-histfile;history -cr \$MCFLY_HISTORY;${PROMPT_COMMAND}"