Class Notes (1,100,000)
CA (620,000)
UTSG (50,000)
CHE (300)
Lecture

vim_coloring.txt

by

Department
Chemical Engineering and Applied Chemistry
Course Code
APS111H1
Professor
Joordens

Page:
of 1
export EDITOR=vi
export PATH="$PATH:/usr/local/Cellar/rabbitmq/2.3.1/sbin"
export PATH="$PATH:~/local/node/lib/node/.npm"
export NODE_PATH="~/local/node/lib/node/.npm"
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/'
}
function precmd() {
PROMPT="%n@%m %~$(parse_git_branch)%# "
}
function proml {
local BLUE="\[\033[0;34m\]"
local RED="\[\033[0;31m\]"
local LIGHT_RED="\[\033[1;31m\]"
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[0;37m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="${TITLEBAR}\
$GREEN\w$BLUE\$(parse_git_branch)\
$WHITE: "
PS2='> '
PS4='+ '
}
proml