Skip to content

Instantly share code, notes, and snippets.

@arajek
arajek / .vimrc
Created July 2, 2012 00:39
My .vimrc setup
:colorscheme wombat256
set hlsearch "highlights searched items
set incsearch "enables incremental search
set ignorecase "ignore case while searching
set smartcase "makes ssearches case sensitive only if there are cap letters in term
set autoindent "uses indent from previous line
set ruler "shows number and column in status bar at bottom
set number "shows line numbers on side of screen
set tabstop=2 "sets tab to two spaces
@arajek
arajek / gist:942460
Created April 26, 2011 15:13
My Bash PS1 line
PS1="\`if [[ \$? = "0" ]]; then echo "\\[\\033[32m\\]"; else echo "\\[\\033[31m\\]"; fi\`[\u.\h: \`if [[ `pwd|wc -c|tr -d " "` > 18 ]]; then echo "\\w"; else echo "\\w"; fi\`]\012\$\[\033[0m\] "; echo -ne "\033]0;`hostname -s`:`pwd`\007"
[<username>.<hostname>: <current directory>]
$