A collection of my dotfiles, including configuration for bash, zsh (via oh-my-zsh), and vim.
- Directory traversal:
..
=cd ..
and...
=cd ../..
- show/hide hidden Finder files with
show
andhide
git
aliased tohub
- git aliases:
gi
=git init
- Rails aliases:
rs
=rails server
- Rake aliases:
rdbm
=rake db:migrate
- Quick python server:
serve
=python -m SimpleHTTPServer
c do<tab>
=cd ~/code/dotfiles
h Doc<tab>
=cd ~/Documents
c
=cd ~/code
h
=cd ~/
gac <commit-message>
: Combinesgit add -A
andgit commit -m
gacp <commit-message>
: Combinesgac
andgit push <remote:origin> <remote-branch:master>
bak <file>
: Copyfile
tofile.bak
pview <file> <lexer>
: Uses pygmentize and bcat to open syntax-highlighted file in web browser.
- Nice
vimrc
- bundle management with Pathogen and git submodules
- Color-Sampler-Pack: https://github.com/vim-scripts/Color-Sampler-Pack
- auto-pairs: https://github.com/jiangmiao/auto-pairs
- NERDCommenter: https://github.com/scrooloose/nerdcommenter
- NERDTree: https://github.com/scrooloose/nerdtree
- SnipMate: https://github.com/msanders/snipmate.vim (snippets in
vim/snippets
) - Surround: https://github.com/tpope/vim-surround
* Optional. Remove alias git=hub
from bash/aliases
and zsh-custom/aliases.zsh
if you don't want
to use it.
jclem/dotfiles assumes that it will be kept in the ~/code/dotfiles
directory.
This location is important, as it symlinks configuration files in the home
directory to files in this location.
- Back up your own dotfiles, if needed.*
- git clone git@github.com:jclem/dotfiles.git ~/code/dotfiles
$ cd ~/code/dotfiles
git submodule update --init
$ rake install
Any files that the installer overwrites will be moved to
~/jclem_dotfiles_backup
where they can easily be recovered.
* jclem/dotfiles creates its own backup, but more than one use of rake install
overwrites the original backup.
Most configuration is modularized. bashrc
just sources files in the bash/
directory, including bash/aliases
, bash/completions
, bash/config
, and
bash/functions
. Edit these files to customize.
Zsh configuration is a little tricky, as I'm using oh-my-zsh,
which is included as a git submodule. oh-my-zsh's custom
directory is mostly ignored by git, so jclem/dotfiles keeps custom zsh files in
its own zsh-custom
directory.
Whenever rake install
is run, the contents of this directory are copied to
oh-my-zsh's custom
directory. If you would like the bash
and zsh
configuration files to be the same, there is a rake task called
copy_bash_to_zsh
which copies bash/aliases
and bash/functions
to
zsh-custom/aliases.zsh
and zsh-custom/functions.zsh
, respectively. Note
that after doing this, one must again run rake install
.