Tuesday, June 3, 2014

What I keep in my .bashrc or .profile

As of now:


alias c="cd"
alias d="cd ../"
alias g="grep"
alias l="ls"
alias p="pwd"
alias v="gvim"
alias vv="vim"
alias br="vim ~/.bashrc"
alias cs="cscope -d"
alias ll="ls -l"
alias sc="source ~/.bashrc"
alias sv="source ~/.vimrc"
alias vr="vim ~/.vimrc"


export PS1='\[\033[32m\]\h:\[\033[35m\]\w\[\033[32m\]$\[\033[35m\]'
#COMMENT: color format command [\033[32m user \]\h:\[\033[35m\]\w(workspace directory)\[\033[32m\]$\[\033[35m what we type in\]

.bashrc on MAC OS X (Snow Leopard, Mountain Lion, Mavericks, Yosemite)

Mac OS X does not have .bashrc file, instead there is .profile
To create this(if it already does not exist), create a profile in ~/.profile and treat it like a normal bashrc 
Note that ~ means /Users/MyUserName