Ls_colors For Mac
Note: config at /.hyper.js still supported, but will be ignored, if config in application directory present. Otherwise it will be moved to the application directory at first run. The config object seen above in.hyper.js admits the following. I'm experimenting with a Mac as a software development environment. My first problem was the Terminal. I don't want a terminal that lacks file color coating. I want the directory colors (dircolors) that I have in my Ubuntu setup. I want this: Snow Leopard is a version of.
COLORS-LscolorsFrom: Bartman
Here is an easy way to set different colours for different kinds of files when using the ls command.
Add the following lines to the bottom of your ~/.bashrc file -
alias ls='ls --color'
LS_COLORS='di=1:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90'
export LS_COLORS
The first line makes ls use the --color parameter by default, which tells ls to display files in different colours based on the setting of the LS_COLORS variable.
The second line is the tricky one, and what I have worked out so far has been by trial and error. The parameters (di, fi, etc.) refer to different Linux file types. I have worked them out as shown
di = directory
fi = file
ln = symbolic link
pi = fifo file
so = socket file
bd = block (buffered) special file
cd = character (unbuffered) special file
or = symbolic link pointing to a non-existent file (orphan)
mi = non-existent file pointed to by a symbolic link (visible when you type ls -l)
ex = file which is executable (ie. has 'x' set in permissions).
The *.rpm=90 parameter at the end tells ls to display any files ending in .rpm in the specified colour, in this case colour 90 (dark grey). This can be applied to any types of files (eg. you could use '*.png=35' to make jpeg files appear purple.) As many or as few parameters as you like can go into the LS_COLORS variable, as long as the parameters are separated by colons.
Using trial and error (and a little bash script I wrote.. my first one ever! :) I worked out all the colour codes, at least my interpretation of them -
0 = default colour
1 = bold
4 = underlined
5 = flashing text
7 = reverse field
31 = red
32 = green
33 = orange
34 = blue
35 = purple
36 = cyan
37 = grey
40 = black background
41 = red background
42 = green background
43 = orange background
44 = blue background
45 = purple background
46 = cyan background
47 = grey background
90 = dark grey
91 = light red
92 = light green
93 = yellow
94 = light blue
95 = light purple
96 = turquoise
100 = dark grey background
101 = light red background
102 = light green background
103 = yellow background
104 = light blue background
105 = light purple background
106 = turquoise background
These can even be combined, so that a parameter like:
di=5;31;42
in your LS_COLORS variable would make directories appear in flashing red text with a green background!
Setting LS_COLORS does more than just make your ls listings look pretty (although it certainly does do that), it is also very helpful in identifying files while wading through a file system.
There's no feature to recall sent email messages in any version of Outlook for Mac. If this is a feature you'd like to see in future versions, please provide feedback at Microsoft's UserVoice site. How do I recall an email in Outlook for a Mac? Go to sent items from Mail box. Double click on the message which is to be recall. Click on messagesActionsrecall this message. Select delete copies of this message and OK. How To Recall Email From Outlook For Mac; Outlook For Mac How To Recall Email Gmail; Outlook For Mac How To Recall Email In Outlook; Recall or replace an email message that you sent - To recall and replace a message. In the folder pane, choose the Sent Items folder. Open the message that you want to recall. You must double-click to open the message. Hi Dennis.R.Johnson, Recalling a sent email is not feasible in Outlook 2016 for Mac. Here is an official document for your reference: Can I recall a sent email in Outlook 2016 for Mac? While I totally understand your concern to have this feature included. Outlook 2016 recall email message technipages. You can try creating a new profile and see if that option appears could be some sort of corruption 13 jan 2016 click account settings again navigate to the email tab. Look for your account and the type column. How to recall a message in outlook 2013 undo e mail laptop. How do i recall an email in outlook for mac.
If anyone finds out additional info on LS_COLORS, or spots an error, please e-mail me, I would like to know. Any questions may also be directed to me by e-mail.
Bartman
Search |
As our eyes spend most of our days looking at the xTerminal (xTerm, xgTerm, uxTerm, or Terminal.app) any relief is always welcome. Unfortunately, the default for the xTerminal (or most applications) is black text on white background which means you are staring at white, i.e., light, most of the time. In addition, your eyes have to constantly adjust between the two extremes of the color spectrum. Hence, even while providing the highest contrast, this color combination tends to strain your eyes. The same is true for light text on dark background, which has been the fad for some web designers these days; please avoid either combination! As far as the eyes are concerned, green/yellow text on a black background (or off-white on dark gray) is the most soothing for the eyes.
One way to change the colors on your Mac’s X11 is to add the following lines to your .Xdefaults, which lives in your home directory:
Note I changed the cursor and pointer properties as well. If .Xdefaults does not exist in your home directory, feel free to create one. For Terminal.app, you can simply use the GUI preferences; it does not read .Xdefaults.
While you are at it, you might want to change the colors for the ‘ls’ commands as well for two different reasons: (i) the defaults do not work well with your new green-on-black xTerminal and (ii) the right color coding instantly identifies the file type. To change the color coding, first you need to make sure color option is turned on; add the following line to .bashrc for xTerminals or .bash_profile for Terminal.app (or .cshrc for both if you use the C shell)**:
Adding a ‘-F’ flag to the alias will result in a slash (‘/’) after directory names. Then to define the foreground and background colors for eleven different filetypes, you need to redefine the LSCOLORS (LS_COLORS for UNIX) parameter in the .bashrc or .bash_profile:
which specifies eleven sets of colors (11x fb). This results in green filenames, bold-green executables, blue directories, yellow symlinks, and so on (see above screenshot); I prefer not to use a background color for normal filetypes. If you are curious, the eleven filetypes are:
If you want to explore more colors, you will need to use the standard ANSI colors:
Hopefully this provides some respite for your eyes! Remember, you can do the same for emacs (in your .emacs file) and even for gmail!
** Original post had an extraneous error: as John pointed out OS X’s ‘ls’ does not handle the “–color=auto” option.