Skip to content

Instantly share code, notes, and snippets.

@odanado
Created November 17, 2017 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odanado/4eb77870df09f1bb54093196d8e825ba to your computer and use it in GitHub Desktop.
Save odanado/4eb77870df09f1bb54093196d8e825ba to your computer and use it in GitHub Desktop.
export XDG_CONFIG_HOME=$HOME/.config
source $HOME/.zplug/init.zsh
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-history-substring-search"
zplug "peco/peco", as:command, from:gh-r
zplug "motemen/ghq", as:command, from:gh-r
zplug "mollifier/anyframe"
zplug "powerline/powerline", use:"powerline/bindings/zsh/powerline.zsh"
zplug check || zplug install
zplug load --verbose
# for cdr
autoload -Uz chpwd_recent_dirs cdr add-zsh-hook
add-zsh-hook chpwd chpwd_recent_dirs
bindkey -e
# ctrl-b/f で単語単位の前進/後進
bindkey '' backward-word
bindkey '' forward-word
bindkey ' ' autosuggest-accept
# anyframe setting
bindkey '' anyframe-widget-put-history
bindkey '' anyframe-widget-insert-filename
bindkey '' anyframe-widget-insert-git-branch
bindkey '' anyframe-widget-cd-ghq-repository
bindkey '' anyframe-widget-execute-history
bindkey '' anyframe-widget-checkout-git-branch
alias cdg=anyframe-widget-cd-ghq-repository
alias cdra=anyframe-widget-cdr
alias tmux-a=anyframe-widget-tmux-attach
export HISTFILE=${HOME}/.zsh_history
export HISTSIZE=1000
export SAVEHIST=500000
setopt hist_ignore_dups
setopt share_history
setopt hist_reduce_blanks
export VIRTUAL_ENV_DISABLE_PROMPT=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment