Source

dotfiles /

Filename Size Date modified Message
.bash
600 B
2.8 KB
1.9 KB
54.9 KB
54.9 KB
14.9 KB
266 B
129 B
2.9 KB
245 B

Sunpech's Dotfiles

My dotfiles to be installed on any new Mac/Ubuntu machine I set up-- although mostly geared for Mac. Always a work in progress.

The idea behind how this project is currently structured is to keep everything in the .dotfiles/ folder in the user's home directory. Then to only create a single symbolic link for .bash_profile.

Requirements

You should have necessary apps installed already. Applications such as Git, Rails, Mongodb, Postgres, Android SDK, mySQL, etc. This repo does not install all that for you. The PATH is set in the .bash_profile file.

Installation

Run the following, line by line.

git clone git@github.com:sunpech/dotfiles.git

mv dotfiles ~/.dotfiles

cd ~/.dotfiles

chmod u+x install.sh

./install.sh

From here make custom changes depending on what kind of dev-box you need.

Apps

Apps paths used in dotfiles

Brew Installs

Packages to install with Homebrew.

brew install git node openssl rbenv ruby-build wget

I have a full list of apps I recommend for software development here: Best Software Development Tools

I also have a more up to date repo, Best Software List.

Git Aware Prompt

I really like Git Aware Prompt, but I use my own fork which supresses the dirty flag for submodules. See: sunpech/git-aware-prompt.

Setup Git

I like to use DiffMerge for merging files.

git config --global diff.tool diffmerge
git config --global difftool.diffmerge.cmd 'diffmerge "$LOCAL" "$REMOTE"'
git config --global merge.tool diffmerge
git config --global mergetool.diffmerge.cmd 'diffmerge --merge --result="$MERGED" "$LOCAL" "$(if test -f "$BASE"; then echo "$BASE"; else echo "$LOCAL"; fi)" "$REMOTE"'
git config --global mergetool.diffmerge.trustExitCode true