Created
November 17, 2017 04:19
-
-
Save odanado/4eb77870df09f1bb54093196d8e825ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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