Skip to content

Commit

Permalink
Should append to history
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Dec 28, 2020
1 parent f0c0b71 commit e85dcfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcfly.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ PROMPT_COMMAND="mcfly_prompt_command;$PROMPT_COMMAND"
# If this is an interactive shell, take ownership of ctrl-r.
if [[ $- =~ .*i.* ]]; then
if [[ ${BASH_VERSINFO[0]} -ge 4 ]]; then
bind -x '"\C-r": "echo \#mcfly: ${READLINE_LINE[@]} > $MCFLY_HISTORY ; READLINE_LINE= ; mcfly search"'
bind -x '"\C-r": "echo \#mcfly: ${READLINE_LINE[@]} >> $MCFLY_HISTORY ; READLINE_LINE= ; mcfly search"'
else
# The logic here is:
# 1. Jump to the beginning of the edit buffer, add 'mcfly: ', and comment out the current line. We comment out the line
Expand Down

0 comments on commit e85dcfe

Please sign in to comment.