A collection of opinionated settings for OS X, zsh, Ruby, Rails, git, homebrew, rbenv and vim. This repo was initially set up so I could easily transfer settings between computers, but if you share a similar setup you may find these useful.
Inspired by holman/dotfiles.
git clone git://github.com/mattkirman/dotfiles
- this can be anywhere in your home directory (I keep mine in~/Dropbox
for those rare occasions where I've got Dropbox access but no Git)cd dotfiles
rake install
The install task will symlink the appropriate files in dotfiles
to
your home directory. Everything should be configured and tweaked from
within this directory though.
- topic/*.zsh: Any files ending in
.zsh
get loaded into your zsh environment. - topic/*.symlink: Any files ending in
*.symlink
get symlinked into your$HOME
. These get symlinked when you runrake install
. You're given the option to back up or skip symlinks if a conf file already exists. - topic/*.completion.sh: Any files ending in
completion.sh
get loaded as autocomplete functions.
- If you have installed rbenv then the current ruby is displayed in the right prompt.
- Git repository branch status is displayed in the left prompt (when inside a repository).
headers URL
- Display request/response headers for a URL.
gco
- Alias ofgit checkout
.git count
- Show the number of commits made to a repository.gl
- Generates a pretty Git log with branch trees.git remote-create BRANCH_NAME [REMOTE]
- Creates a new local topic branch as well as a corresponding remote branch based on the branch you currently have checked out.git remote-delete BRANCH_NAME [REMOTE]
- Deletes the local branch then the local branch.git remote-publish
- Publishes an existing local topic branch to the remote server.git remote-rename BRANCH_NAME [REMOTE]
- Rename a remote branch and its local tracking branch.git remote-track BRANCH_NAME [REMOTE]
- Track an existing remote branch locally and checkout the branch.
tmx
- Share Tmux windows between sessions. This allows you to share windows without forcing you to share the same view.tssh HOST
- Open a remote Tmux session on HOST over SSH. To close the SSH session just detach Tmux.
e FILE
- Opens a file in your$EDITOR
.extract ARCHIVE
- Extracts an archive using the correct command based on the file extension.reload!
- Made any changes to your config?reload!
is your friend.