Daniel Ngu

Dotfiles

Bash

Linux:

~/.bashrc
1
2
3
4
5
6
7
8
PS1='\u@\h:\w\$ '

HISTSIZE=8000
HISTFILESIZE=8000

PATH=$PATH:$HOME/Documents/bin

source "$HOME/.rvm/scripts/rvm"

Mac:

~/.bashrc
1
2
3
4
5
6
7
8
9
10
HISTSIZE=8000
HISTFILESIZE=8000

PATH=$PATH:$HOME/Documents/bin

export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting

export PS1='\u@\h:\w\$ '

export PROMPT_COMMAND='echo -ne "\033]0;$PWD\007"'

The RVM line is actually auto added as part of Octopress install but included here for completeness.

~/.bash_profile
1
source ~/.bashrc

Vim

Linux:

~/.vimrc
1
2
3
4
5
6
7
8
9
10
filetype plugin indent on

set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
set textwidth=80
set formatoptions+=t

syntax on

set spelllang=en_nz
set ruler laststatus=2 number title hlsearch

Mac:

~/.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
filetype plugin indent on

set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab
set textwidth=80
set formatoptions+=t

syntax on

set spelllang=en_nz
set ruler laststatus=2 number title hlsearch

set background=dark
colorscheme solarized

let &titleold=getcwd()
~/.vim/ftplugin/html.vim
1
setlocal shiftwidth=2

Solarized Theme:

Download theme and copy vim’s colors folder to ~/.vim