Friday, 19 July 2019

macos - color coding mac terminal


how do i get the mac terminal to display colors? i.e. in fedora when i use ls it color codes the results based on if it's a file or folder. similar results on mac?



Answer



You can change your shell colors in Terminal's preferences.


alt text




With these settings, you get these colors (not usually using colored ls, so I don't care):


alt text




I don't understand what the issue is here. Colored command output is active by default. The only thing you can/need to do yourself is give normal and bold text different default colors, and actually use the colored variants (e.g. ls -G) of your commands.


For vim: :syntax on in vim. Or append syntax on to .vimrc.


No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...