Skip to content

Instantly share code, notes, and snippets.

@andreipak
Forked from aurbano/.zshrc
Last active August 29, 2015 14:16
Show Gist options
  • Save andreipak/58524f86f2f9608a5a3c to your computer and use it in GitHub Desktop.
Save andreipak/58524f86f2f9608a5a3c to your computer and use it in GitHub Desktop.
# start_time="$(date +%s)"
# Antigen — A zsh plugin manager
export ANTIGEN_DEFAULT_REPO_URL=https://github.com/sharat87/oh-my-zsh.git
source ~/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo declared above.
antigen bundles <<EOBUNDLES
lein
pip
gradle
brew
gem
npm
sublime
python
# Guess what to install when running an unknown command.
command-not-found
# The heroku tool helper plugin.
heroku
# Helper for extracting different types of archives.
extract
# Help working with version control systems.
svn
git
# nicoulaj's moar completion files for zsh
zsh-users/zsh-completions src
# Syntax highlighting bundle.
zsh-users/zsh-syntax-highlighting
# ZSH port of Fish shell's history search feature.
zsh-users/zsh-history-substring-search
# Autocomplete
tarruda/zsh-autosuggestions
EOBUNDLES
# Tracks your most used directories, based on 'frecency'. And its accompanying
# setup code.
antigen bundle rupa/z
add-zsh-hook precmd _z_precmd
function _z_precmd {
_z --add "$PWD"
}
# Setup suggestions
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
# Load the prompt theme.
# antigen theme prose
antigen theme sjl/oh-my-zsh themes/prose
# Tell Antigen that we're done.
antigen apply
# Automatically list directory contents on `cd`.
auto-ls () { ls; }
chpwd_functions=( auto-ls $chpwd_functions )
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment