Skip to content

Instantly share code, notes, and snippets.

@mystelynx
Last active February 17, 2021 23:41
Show Gist options
  • Save mystelynx/bca7d875f4c1596d66e0 to your computer and use it in GitHub Desktop.
Save mystelynx/bca7d875f4c1596d66e0 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
@mystelynx
Copy link
Author

本来L.29は不要なはず.
tmuxのなにかの設定とバッティングして https://github.com/tarruda/zsh-autosuggestions#known-issues こいつが発生するぽい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment