1. What is cw(color wrapper)?
cw is a non-intrusive real-time ANSI color wrapper for common unix-based
commands on GNU/linux. cw is designed to simulate the environment of the
commands being executed, so that if a person types 'du', 'df', 'ping', etc.
in their shell it will automatically color the output in real-time according
to a definition file containing the color format desired. cw has support for
wildcard match coloring, tokenized coloring, headers/footers, case scenario
coloring, command line dependent definition coloring, and includes over 50
pre-made definition files.
.bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
PS1="["
PS1="$PS1\[\e[36m\]\u\[\e[0m\]"
PS1="$PS1@"
if [ "x$YROOT_NAME" != "x" ]; then
# Yroot Indicator
PS1="$PS1\[\e[32;40m\]$YROOT_NAME\[\e[0m\]"
PS1="$PS1@"
fi
PS1="$PS1\[\e[34;1m\]\h\[\e[0m\]"
PS1="$PS1]"
PS1="$PS1\\$ "
export EDITOR=vim
alias starts="synergys -a 10.72.112.115 -n devBox -c /home/ndoshi/.synergy.conf"
alias stops="killall synergys"
export PATH="/usr/lib/cw:$PATH"
.screenrc
# Status Bar
caption always "%{= kc}%H (system load: %l)%-21=%{= .m}%D %d.%m.%Y %0c"
hardstatus alwayslastline
"%{= bw} %{= bc}[%{-}%0c%{= bc}]%{-} [%-Lw%{= bW}%{+b}%50>%n%f* %t%{-b}%{= bw}%+Lw]%<"
# connect to devm
screen -fn -t deVM 1
screen -fn -t train1 2
*- Nirav -*