Gabriel Berke-Williams' dotfiles for zsh, ruby, git, and more.
Questions? Comments? Open an issue or tweet @gabebw.
- ZSH. To change your default shell to ZSH:
chsh -s $(which zsh) $USER
It won't touch your existing dotfiles, but will symlink ones that don't exist.
For example, if you have a
~/.zshrc but no
~/.zshenv, then the script will
add a symlink from
~/.zshenv to the
zshenv in this repo.
- Look in
- Turn off all beeping
- Turn off "helpful" command autocorrecting
zsh: no matches found: ...error
- Since (among others)
$HOME/codeis in my
navigation.zsh), and I have
$HOME/code/hello, I can type
hellofrom anywhere to go to there.
- The prompt shows the current directory, the current git branch, the status of the git branch (changed, staged, clean, etc) and the current Ruby version
- The prompt is fairly well documented, and is self-contained: you can copy it into your dotfiles with no changes to test it out. It's in zsh/prompt.zsh.
- Enables pretty colors
- Enables completions
- Enables Vi-style editing on the command line, with
Ctrl-rto search backwards
- If you've typed
abcthen press the Up arrow, it searches for commands starting with
abc; same for the Down arrow.
- Completion for the following commands (in
- Every time a directory changes, save it to a file and go back to the current directory when the shell is opened again. Files are named based on the current tmux session.
bwith no arguments runs a faster version of
bundle installand then installs binstubs.
bwith arguments (like
b install) acts just like
binstubsinstalls bundler binstubs to
rrg somethinggreps the routes for
foremanon the port specified in
.foreman, or if that's in use, starts
foremanon a guaranteed-unused port.
db-resetdrops and resets the database
- For Vim-plugin-specific settings, check out