Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 12, 2015
  1. @lunohodov

    Prevent unreadable prompt within Git repository

    lunohodov authored
    When within a git repository, doing a tab-autocomplete on a command results with the command becoming unreadable. The command still works but this is pretty annoying visually.
    Basically I
    1. Navigate to a directory with a git repository in it. The prompt indicates the current branch properly
    2. Next, type `git -` and hit tab
    The prompt now shows only part of branch's name with the first suggestion appended.
    After googling a bit I stumbled upon several pages describing a similar problem (most useful to me was
    The culprit seems to be the git_prompt_info function escaping the `$current_branch` variable as if it is a color. As a result zsh is confused where the cursor is. After "unescaping" the variable everything seems to work fine.
    Using zsh 5.0.7 (x86_64-apple-darwin13.4.0).
Commits on Jan 26, 2015
  1. @croaky

    Add `git rename-branch` alias

    croaky authored
    * Extract `git current-branch` alias.
    * Re-use `git current-branch` in two places.
Commits on Oct 3, 2014
  1. @mike-burns

    Fix the zsh config glob

    mike-burns authored
    The glob used a modifier, but it was modifying a directory instead of a
    glob that matched all the files in the directory. Add the missing `*` to
    fix this.
Commits on Sep 12, 2014
  1. @tsigo @gylaz

    Add zshenv file

    tsigo authored gylaz committed
    From the [Zsh manual](
    > '.zshenv' is sourced on all invocations of the shell, unless the -f option is
    > set. It should contain commands to set the command search path, plus other
    > important environment variables. `.zshenv' should not contain commands that
    > produce output or assume the shell is attached to a tty.
    Why is this important? [Alfred]( workflows run in
    non-interactive shells. When the `$PATH` is set, or `rbenv` is initialized, in
    `zshrc` instead of `zshenv`, those workflows will not use the correct Ruby
    version and might not have access to certain bin files, such as those from
    `$HOME/.bin/` or Homebrew.
Commits on Aug 27, 2014
  1. @mike-burns

    Introduce ~/.zsh/configs

    mike-burns authored
    Just before loading `~/.zshrc.local`, load:
    1. `~/.zsh/configs/pre/**/*`
    2. `~/.zsh/configs/**/*` # excluding pre and post
    3. `~/.zsh/configs/post/**/*`
    About the zsh glob:
    - `.`: only produce normal files.
    - `-`: follow symlinks to their final file; skip any broken links.
    - `N`: do not complain about zero matches.
    Big ups to Pat Brisbin for finding `N`.
Commits on Jul 21, 2014
  1. @gylaz

    Add /usr/local/bin to PATH before /usr/bin

    gylaz authored
    This is for homebrew binaries to work.
    Load `rbenv` after adding `$HOME/.bin` and `/usr/local/bin` to `PATH`, but
    before adding project-specific binstubs.
Commits on Apr 30, 2014
  1. @croaky

    Show only basename and git branch in prompt

    croaky authored
    * Switch order from "[git branch][pathname]" to "basename git branch %".
    * Remove noisy brackets.
    Example old:
    Example new:
        dotfiles dc-prompt %
Commits on Apr 9, 2014
  1. @gylaz

    Improve zsh history

    gylaz authored
    * "to the $HISTFILE incrementally (as soon as they are entered), rather than
      waiting until the shell exits"
    * replace any duplicate in the history, not just the previous duplicate: allows
      for a cleaner history
    * `.zhistory` is more idiomatic than `.zsh_history`
Commits on Apr 3, 2014
  1. @jferris

    Don't attempt to autocorrect spelling

    jferris authored
    This frequently catches false positives for aliases, particularly for
    subcommands. It also takes just as long to look at the autocorrect
    prompt and select "y" as it does to just retype the command yourself.
Commits on Mar 28, 2014
  1. @gylaz

    Combine zlogin settings into zshrc

    gylaz authored
    * easier when everything is just one file
    * most (if not all) interactive shells are login shells and we likely want those
      settings for interactive shells
Commits on Mar 27, 2014
  1. @gabebw

    Don't set $EYRC

    gabebw authored
    We don't use Engine Yard anymore.
Commits on Mar 21, 2014
  1. @snackycracky @gylaz

    Add HISTFILE to save zsh history

    snackycracky authored gylaz committed
    History file needs to be specified or otherwise the history would not be saved
    over multiple terminal sessions.
Commits on Jan 23, 2014
  1. @croaky

    Add rbenv shims and trusted binstubs to PATH

    croaky authored
    Our expected way of managing Rubies is with rbenv:
    This commit loads rbenv in `zshrc` as recommended by the rbenv docs:
    Assuming the binstubs for a project are in the local bin/ directory, we
    can even go a step further to add the directory to shell $PATH so that
    rspec can be invoked without the bin/ prefix:
        export PATH="./bin:$PATH"
    Doing so on a system that other people have write access to (such as a
    shared host) is a security risk:
    The `.git/safe` convention addresses the security problem:
    This zsh fix may be necessary for OS users in order to fix a bug:
Commits on Dec 26, 2013
  1. @gylaz

    Cleanup zshrc

    gylaz authored
    * remove duplicates with zlogin
    * order by functions first, then bindings, then exports
    * lowercase `setopt` arguments for consistency with `setopt` output
Commits on Oct 8, 2013
  1. @mike-burns

    The user is able to type [ or ]

    mike-burns authored
    There are many workarounds[1] to the
        zsh: no matches found: ...
    issue, but let's just stop it at its core: turn off that `nomatch`
    Apologies to all who enjoy seeing the pun around:
        % got a light?
        zsh: no matches found: light?
    But all good shell puns[2] must come to an end.
Commits on Jul 9, 2013
  1. @croaky

    Source ~/.zshrc.local if it exists

    croaky authored
    Follows the pattern of:
    * ~/.aliases.local in ce7ad49
    * ~/.gitconfig.local in 8e141fe
    * ~/.vimrc.local in a666267
    Use consistent:
    * `source`ing style.
    * commenting style.
    I am using ~/.zshrc.local as a home for `eval "$(rbenv init -)"`.
Commits on Mar 3, 2013
  1. @gabebw

    g alias for git

    gabebw authored
    With arguments, g acts like git.
    Without arguments, it runs `git status`.
    * Source functions/* after loading ZSH completion so `compdef` is available to g
Commits on Feb 15, 2013
  1. @mike-burns

    Set $VISUAL

    mike-burns authored
    Most tools look for $VISUAL before $EDITOR, and we tend to want that
    anyway. This allows people to customize the two, for example using GUI
    vim for $VISUAL and normal vim for $EDITOR, or more extreme: `ex -v` for
    $VISUAL and `ex` for $EDITOR.
Commits on Jan 18, 2013
  1. @jferris

    Replace s shell script with rspec shell function and alias

    jferris authored
    * Use a regular alias to make `s` short for `rspec`
    * Use an `rspec` shell function to route to zeus when appropriate
    * Removes confusion from `s` working differently than `rspec`
    * Removes need to use a special alias to get zeus working
Commits on Apr 4, 2011
  1. @qrush

    add in zshkit fun stuff

    qrush authored
Commits on Mar 25, 2011
  1. @croaky
Commits on Jan 14, 2011
  1. @mike-burns

    Some useful Mike Burns-isms

    mike-burns authored
Commits on Jan 13, 2011
  1. @jferris

    zsh config

    jferris authored
Something went wrong with that request. Please try again.