-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with zsh #5
Comments
I was going to write the same, the workaround for it that I found is copied / pasted the highlighting function in my zshrc. |
yes. i did the same. just copy the function into function highlight() {
declare -A fg_color_map
fg_color_map[black]=30
fg_color_map[red]=31
fg_color_map[green]=32
fg_color_map[yellow]=33
fg_color_map[blue]=34
fg_color_map[magenta]=35
fg_color_map[cyan]=36
fg_c=$(echo -e "\e[1;${fg_color_map[$1]}m")
c_rs=$'\e[0m'
sed -u s"/$2/$fg_c\0$c_rs/g"
} works like a charm. because its has |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you add support for zsh specially with oh-my-zsh
The text was updated successfully, but these errors were encountered: