2015-09-07 00:51:36 -07:00
|
|
|
HISTFILE=~/.histfile
|
|
|
|
|
HISTSIZE=1000
|
|
|
|
|
SAVEHIST=1000
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
source ~/antigen.zsh
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
antigen use oh-my-zsh
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
antigen bundle zsh-users/zsh-syntax-highlighting
|
|
|
|
|
antigen bundle zsh-users/zsh-history-substring-search
|
|
|
|
|
antigen bundle rupa/z
|
|
|
|
|
antigen bundle git
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
# OSX specific
|
|
|
|
|
antigen bundle brew
|
|
|
|
|
antigen bundle brew-cask
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
antigen theme bureau
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
antigen apply
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
source ~/dotfiles/zsh-files/zsh_opts.zsh
|
|
|
|
|
source ~/dotfiles/zsh-files/exports.zsh
|
2013-08-02 00:13:05 -07:00
|
|
|
|
|
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
zstyle :compinstall filename '/Users/haak/.zshrc'
|
2013-08-02 00:13:05 -07:00
|
|
|
|
2015-09-07 00:51:36 -07:00
|
|
|
autoload -Uz compinit
|
|
|
|
|
compinit
|
2014-04-24 23:16:10 -07:00
|
|
|
|
|
|
|
|
function branch_prompt {
|
|
|
|
|
BRANCH=$(current_branch)
|
|
|
|
|
SHA=$(command git rev-parse --short HEAD 2> /dev/null)
|
|
|
|
|
if [[ $SHA = $BRANCH ]]; then
|
|
|
|
|
echo "$(git_prompt_long_sha)"
|
|
|
|
|
else
|
|
|
|
|
echo "$(current_branch)$(git_prompt_short_sha)"
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-30 07:52:54 +00:00
|
|
|
fancy-ctrl-z () {
|
|
|
|
|
if [[ $#BUFFER -eq 0 ]]; then
|
|
|
|
|
bg
|
|
|
|
|
zle redisplay
|
|
|
|
|
else
|
|
|
|
|
zle push-input
|
|
|
|
|
fi
|
|
|
|
|
}
|
|
|
|
|
zle -N fancy-ctrl-z
|
|
|
|
|
bindkey '^Z' fancy-ctrl-z
|