Skip to content

Instantly share code, notes, and snippets.

@nhap69
Forked from mystelynx/zshrc
Created November 19, 2017 05:48
Show Gist options
  • Save nhap69/0f0f6454aaf9d11da9429e16fc555aa4 to your computer and use it in GitHub Desktop.
Save nhap69/0f0f6454aaf9d11da9429e16fc555aa4 to your computer and use it in GitHub Desktop.
zgen with prezto
# zgen
export ZGEN_RESET_ON_CHANGE=($HOME/.zshrc)
source $HOME/src/github.com/tarjoilija/zgen/zgen.zsh
if ! zgen saved; then
echo "Creating a zgen save"
zgen prezto editor key-bindings 'emacs'
zgen prezto prompt theme 'sorin'
zgen prezto tmux:auto-start local 'yes'
zgen prezto '*:*' case-sensitive 'yes'
zgen prezto '*:*' color 'yes'
zgen prezto
zgen prezto git
zgen prezto command-not-found
zgen prezto tmux
zgen prezto fasd
zgen prezto history-substring-search
zgen prezto syntax-highlighting
#zgen load djui/alias-tips
zgen load caarlos0/zsh-git-sync
zgen load TBSliver/zsh-plugin-colored-man
zgen load mafredri/zsh-async
zgen load junegunn/fzf shell
zgen load zsh-users/zsh-syntax-highlighting
zgen load tarruda/zsh-autosuggestions
zgen save
fi
export LESS='-R'
export LESSOPEN='| /usr/local/bin/src-hilite-lesspipe.sh %s'
autoload -Uz add-zsh-hook
add-zsh-hook precmd newline-after-command
function newline-after-command() {
print ''
}
eval "$(direnv hook zsh)"
export FZF_COMPLETION_TRIGGER=''
bindkey '^T' fzf-completion
bindkey '^I' $fzf_default_completion
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment