its hard to see where the input line is if it prints out a lot of text. I know you can change the "theme" of the terminal but it doesnt affect the input line
Asked
Active
Viewed 523 times
0
-
Do you mean the prompt? The part after which you type your command? Something like `user@machine ~/path/to/dir $` or similar? – Benjamin W. Oct 08 '19 at 18:11
-
1You can find more about colors on https://stackoverflow.com/questions/5947742/how-to-change-the-output-color-of-echo-in-linux . To use it as your input line, `open -e ~/.bash_profile` and at the end on a new line, add this line. Lets say you want a red colors, `PS1="\033[0;31m\h:\W \u\$\033[0m "`. Search more about PS1 env var, color codes and `.bash_profile`. Remember every interactive shell on macos is defaulted to be a login shell, so don't use `.bashrc` (I am not sure what's the process if you updated to zsh) – Mihir Luthra Oct 08 '19 at 18:16
1 Answers
1
If you are willing to switch terminal emulators then I know that iTerm2 has this as a feature. It can be activated in iTerm2 by going to View>Show Cursor Guide or by hitting ⌘ Command+⌥ Option+;. I however do not think that it is possible to acomplish this another way. You can see the effects of the line highlight in a similar question here.

HANS LARSSON
- 125
- 1
- 6