For instance, you can change the cursor shape, add a background image, change text size and color, and much more. In fact, Terminal already comes with an assortment of. Better yet, we really need to be able to configure Terminal->Prefs the option to ⌘ C (copy) only text out of Terminal or text and color. Maybe there is a hidden defaults command that can be set. Maybe there is a hidden defaults command that can be set.
cayohuesocaca wrote: I am not sure it's possible without some 3rd party app. I just created a file name in an rtf file, colored it and copied it to replace the file name of another file but when I pasted it, the color changed to black. Ditto with the font style. I tried an italic font but when I pasted it, it became the standard font. The file names are actually BSD file names, and if you look at the files in terminal, there seems to be no obvious place to store any additional attributes to change the color or font. I admit it's probably possible with some hacking in the terminal, but if it changes the BSD name as well, you are asking for trouble. ![]()
Oct 8, 2008 12:30 PM
Active11 months ago
How can I configure Mac Terminal to have color ls output?I am using MacOS 10.5
bmike♦
168k4646 gold badges304304 silver badges662662 bronze badges
lucius
migrated from stackoverflow.comDec 14 '11 at 4:40
This question came from our site for professional and enthusiast programmers.
10 Answers
Edit:
or
and add the following line to simply enable color output via
ls :
To customize the coloring shown by
ls you can optionally add this variable, LSCOLORS .
Examples
Once you've add the above to either
~/.bash_profile or ~/.profile you can either logout/login or source the file in your shell, for eg:
NOTE: If you need help in selecting colors to use you can use this online tool called LSCOLORS Generator.
Bill Szerdy
You can add
to your Barry WarkBarry Wark
~/.bash_profile to get colored ls output.
2,02111 gold badge99 silver badges44 bronze badges
I find that all I need really is adding this to my
~/.bash_profile
FilypeFilype
If you want a readable Mac OS X Terminal color scheme, you may want to look into this:
I've been using this for over a year now, and I might not be able to function without it!
Here's an updated link:
grg♦
145k2525 gold badges229229 silver badges340340 bronze badges
JeffJeff
Also you can customize the prompt color (and its format) by adding:
to
~/.bash_profile or ~/.profile file. Where 0;33 is regular yellow which looks nice in my black/semitransparent terminal window.
Here is a full list of colors and their explanations: https://wiki.archlinux.org/index.php/Color_Bash_Prompt
![]()
51k88 gold badges106106 silver badges154154 bronze badges
nacho4dnacho4d
Another option is to use the GNU
ls which is part of the 'coreutils' program.
You can get it via Rudix or Homebrew ( Mark
brew info coreutils )or Macports or Fink. That might be preferable to using a 'Mac OS X-only' solution if you use the same shell config files on different systems, or are already familiar with GNU ls.
20.9k1212 gold badges6060 silver badges9898 bronze badges
TJ LuomaTJ Luoma
12.7k33 gold badges4242 silver badges8383 bronze badges
Personally, I'm using Oh My Zsh for adding color and other tricks to my Terminal. I think that is the easiest way.
oh-my-zsh is an open source, community-driven framework for managing your Zsh configuration.
It comes bundled with a ton of helpful functions, helpers, plugins, themes, and a few things that make you shout…
StrawHaraStrawHara
Mark's Text Terminal
3,50133 gold badges1818 silver badges4646 bronze badges
Simply add the following line to
~/.bash_profile file:
Preview:
This is my preferred colors. You can customize each part of prompt's color by changing
m codes (e.g. 34m ) which are ANSI color codes.
List of ANSI Color codes:
Shayan AmaniShayan Amani
Text Terminal
Sand1512Sand1512
Forget all those decades-old cryptic codes for gosh sakes, use the built in Terminal --> Preferences... Settings pane to set the default skin, and edit the ANSI colors to your liking. You can set the font, too. I prefer Menlo 12pt. This is how any regular Joe can do it, and avoid all the crazy command-line, unix-esque way of doing things as other posters have suggested.
Color Options For Text Terminal Mac Hacking
Geoff HoffmanGeoff Hoffman
Color Options For Text Terminal Mac CommandsYou must log in to answer this question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |