You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run bash in vi mode and I have the following lines in my .bashrc:
# if this is interactive shell, then bind hstr to Ctrl-r
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\e^i hstr -- \n"'; fi # vi mode
# if this is interactive shell, then bind 'kill last command' to Ctrl-k
if [[ $- =~ .*i.* ]]; then bind '"\C-k": "\e^i hstr -k \n"'; fi # vi mode
The first line works as expected -- hstr -- (with a space prefix to keep it from history) which is run to show the menu.
The second line runs hstr -k the same way hstr -- runs, but nothing happens. The last history entry is still present.
EDIT: When manually set to set -o emacs, hstr -k doesn't work either.
The text was updated successfully, but these errors were encountered:
I run bash in vi mode and I have the following lines in my
.bashrc
:The first line works as expected --
hstr --
(with a space prefix to keep it from history) which is run to show the menu.The second line runs
hstr -k
the same wayhstr --
runs, but nothing happens. The last history entry is still present.EDIT: When manually set to
set -o emacs
,hstr -k
doesn't work either.The text was updated successfully, but these errors were encountered: