"history-search-backward" but ignore sudo prefix in zsh?
1
vote
1
answer
58
views
According to this page: https://zsh.sourceforge.io/Doc/Release/Zsh-Line-Editor.html
history-search-backward
: "Search backward in the history for a line beginning with the first word in the buffer."
But when command is prefixed with sudo
that breaks everything. Can I make zsh ignore sudo
for this command?
Also want to apply same thing for history-search-forward
Asked by sloppy
(121 rep)
Feb 23, 2025, 04:16 PM
Last activity: May 25, 2025, 09:47 AM
Last activity: May 25, 2025, 09:47 AM