osx - Set certain words to appear coloured in iterm2
2014-04
I am trying to get iterm2
to print certain words coloured (or bold, or whatever) as I am typing them in the terminal. I thought that I can somehow instruct it to check in a dictionary and if it finds a certain word it should apply a pattern, like you can do using the example on their website:
printf '\e\[0;31mplain\n\e\[1;31mbold\n'\ '\e\[0;91mhighlight\n\e\[1;91mbold+highlight\n\e\[0m'
which outputs
Somehow I would like to mimic the vim
behaviour in the terminal, but I only need several such words.
I've been looking through their documentation and for similar questions on the internet but I did not find any answer and I suspect it's not extremely straighforward to do.
Is there any way this is achievable? Thanks in advance.
Can one detect what terminal application is being used? I want the actual application, not TERM env in the question.
I'd like to detect iTerm 2 / Terminal.app so I could set OSX specific keyboard mappings, otherwise PC.
You need to SSH forward local environment variables, as explained here:
http://groups.google.com/group/iterm2-discuss/msg/7cc214c487d31bc8