Skip to content

Commit

Permalink
Merge pull request ohmyzsh#134 from sonnym/enable_quick_history_subst…
Browse files Browse the repository at this point in the history
…itution_highlighting

highlight ^old^new pattern
  • Loading branch information
nicoulaj committed Sep 24, 2014
2 parents 443908b + 04f9c88 commit 10391d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion highlighters/main/main-highlighter.zsh
Expand Up @@ -128,7 +128,7 @@ _zsh_highlight_main_highlighter()
new_expression=true
elif _zsh_highlight_main_highlighter_check_path; then
style=$ZSH_HIGHLIGHT_STYLES[path]
elif [[ $arg[0,1] = $histchars[0,1] ]]; then
elif [[ $arg[0,1] == $histchars[0,1] || $arg[0,1] == $histchars[2,2] ]]; then
style=$ZSH_HIGHLIGHT_STYLES[history-expansion]
else
style=$ZSH_HIGHLIGHT_STYLES[unknown-token]
Expand Down

0 comments on commit 10391d0

Please sign in to comment.