/etc/pscolor
System wide colorization file. See pscolor(5) for more information
Set up ps and top colorization
eval `pscol
[file]
[{-s<p | t>}]
[-C]
[-f
file]
[-V]
`
pscol -c
[u+cm
[{p | t}]]
[-f
file]
[-V]
pscol [-h]
[-v]
pscol sets environment variables to control the colorization of ps(1) and top(1). pscol cannot directly set variables in you environement, so it outputs environement variable settings to stdout, and you must instruct your shell to use them.
takes the current PS_COLORS and/or TOP_COLORS and creates $HOME/.pscolor. Use -f to override this file
Creation features:
turn off converting ANSI codes to readable format
turn off converting the mark-up type to readable format
turn off converting UID to user names
turn off converting current UID to +
Other:
writes out only the PS_COLORS variable
writes out only the TOP_COLORS variable
-f file
Use a different file instead of /etc/pscolors or $HOME/.pscolor
-h
Displays a help screen and exits
prints the PS or TOP color string to stdout.
this would be used to set a variable.
p returns the PS color string
t returns the TOP color string
Ie: ps=`pscol -op`
-s[p|t]
used to set the PS or TOP color variable.
p set PS_COLORS only
t set TOP_COLORS only
-v
Prints the version info and exits
-C
use CSH style setenv instead of using bourne style export
-V
Verbose mode. Reports what goes on to stderr.
/etc/pscolor
System wide colorization file. See pscolor(5) for more information
$HOME/.pscolor
Per user colorization file. See pscolor(5) for more information
PS_COLORS
ps(1) color string
TOP_COLORS
top(1) color string
HOME
user's home directory where the per user colorization file is stored
Redistribution is subject to the GNU public license.