Skip to content

Instantly share code, notes, and snippets.

@GeneralD
Last active January 7, 2018 13:03
Show Gist options
  • Save GeneralD/11feb36ccec1083043bb9a2c415fa378 to your computer and use it in GitHub Desktop.
Save GeneralD/11feb36ccec1083043bb9a2c415fa378 to your computer and use it in GitHub Desktop.
唸れ!重装系ZSH!次世代のトレンドを体験せよ。 ref: https://qiita.com/GeneralD/items/7aad84a6560206dc6e45
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
zplug "bhilburn/powerlevel9k", use:"powerlevel9k.zsh-theme", as:theme, if:"source ~/.powerlevel9k"
zplug "GeneralD/bd3a10afa9d37e9efe7f5af288675ca6", from:gist, use:"partial-search-history-with-arrow-keys.zsh"
zplug "GeneralD/b3b7c2290db941ad5b2a5e3eb50e1e9e", from:gist, use:"expand-or-complete-with-dots.zsh", if:"WAITING_DOTS='···'"
zplug check --verbose || zplug install
zplug load
bindkey '^z1' zaw-git-branches
bindkey '^z2' zaw-git-files
bindkey '^z3' zaw-git-files-legacy
bindkey '^z4' zaw-git-log
bindkey '^z5' zaw-git-recent-all-branches
bindkey '^z6' zaw-git-recent-branches
bindkey '^z7' zaw-git-reflog
bindkey '^z8' zaw-git-status
# bindkey '^z9' zaw-
bindkey '^z0' zaw-aliases
bindkey '^za' zaw-applications
bindkey '^zb' zaw-homebrew
bindkey '^zc' zaw-brewcask
bindkey '^zd' zaw-dirstack
bindkey '^ze' zaw-ssh-hosts
bindkey '^zf' zaw-functions
bindkey '^zg' zaw-rubygem
bindkey '^zh' zaw-history
bindkey '^zi' zaw-github-starred
bindkey '^zj' zaw-ghq
bindkey '^zk' zaw-ghs
bindkey '^zl' zaw-bitbucket
bindkey '^zm' zaw-mac-appstore
bindkey '^zn' zaw-nerd-icon
bindkey '^zo' zaw-open-file
bindkey '^zp' zaw-pypi
bindkey '^zq' zaw-cdd
bindkey '^zr' zaw-cdr
bindkey '^zs' zaw-screens
bindkey '^zt' zaw-tmux
bindkey '^zu' zaw-unity
bindkey '^zv' zaw-install-unity
bindkey '^zw' zaw-widgets
# bindkey '^zx'
bindkey '^zy' zaw-bookmark
bindkey '^zz' zaw
bindkey '^z^z' zaw
bindkey '^z[' zaw-programs
bindkey '^z]' zaw-process
bindkey '^z<' zaw-command-output
bindkey '^z>' zaw-commands
gencomp まだ補完が効かないコマンド
zload $GENCOMPL_FPATH/_*
zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "zsh-users/zsh-completions"
zplug "RobSis/zsh-completion-generator", if:"GENCOMPL_FPATH=$HOME/.zsh/complete"
zplug "Tarrasch/zsh-functional" # each map filter fold
zplug "willghatch/zsh-hooks"
zplug "unixorn/warhol.plugin.zsh" # ansi
zplug "mollifier/zload"
zplug "b4b4r07/enhancd", use:"init.sh"
zplug "GeneralD/zsh-brew-file-wrapper", if:"[[ $OSTYPE == *darwin* ]]"
zplug "GeneralD/zsh-aliases-colorls"
zplug "GeneralD/zsh-completion-gibo"
zplug "GeneralD/zsh-without-etcdir"
zplug "GeneralD/c11b656364a38e0f67182411a0ee14b8", from:gist, use:"enable-cdr.zsh"
zplug "GeneralD/bd3a10afa9d37e9efe7f5af288675ca6", from:gist, use:"partial-search-history-with-arrow-keys.zsh"
zplug "GeneralD/b3b7c2290db941ad5b2a5e3eb50e1e9e", from:gist, use:"expand-or-complete-with-dots.zsh", if:"WAITING_DOTS='···'"
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/colorize", from:oh-my-zsh
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "plugins/composer", from:oh-my-zsh
zplug "plugins/docker", from:oh-my-zsh
zplug "plugins/emacs", from:oh-my-zsh
zplug "plugins/extract", from:oh-my-zsh
zplug "plugins/gem", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/github", from:oh-my-zsh
zplug "plugins/gitignore", from:oh-my-zsh
zplug "plugins/gnu-utils", from:oh-my-zsh
zplug "plugins/go", from:oh-my-zsh
zplug "plugins/gpg-agent", from:oh-my-zsh
zplug "plugins/heroku", from:oh-my-zsh
zplug "plugins/httpie", from:oh-my-zsh
zplug "plugins/man", from:oh-my-zsh
zplug "plugins/osx", from:oh-my-zsh
zplug "plugins/pip", from:oh-my-zsh
zplug "plugins/pod", from:oh-my-zsh
zplug "plugins/wp-cli", from:oh-my-zsh
zplug "plugins/xcode", from:oh-my-zsh
zplug "plugins/z", from:oh-my-zsh
for i in $plugins; do; echo zplug \"plugins/$i\", from:oh-my-zsh; done
zplug "plugins/colored-man-pages", from:oh-my-zsh
zplug "plugins/colorize", from:oh-my-zsh, if:"which pygmentize 1>/dev/null"
zplug "plugins/command-not-found", from:oh-my-zsh
zplug "plugins/composer", from:oh-my-zsh, if:"which composer 1>/dev/null"
zplug "plugins/docker", from:oh-my-zsh, if:"which docker 1>/dev/null"
zplug "plugins/emacs", from:oh-my-zsh, if:"which emacs 1>/dev/null"
zplug "plugins/extract", from:oh-my-zsh, hook-load:"alias -s {tar,gz,tgz,bz2,tbz,tbz2,xz,txz,zma,tlz,lzma,Z,zip,war,jar,rar,7z,deb}=extract"
zplug "plugins/gem", from:oh-my-zsh, if:"which gem 1>/dev/null"
zplug "plugins/git", from:oh-my-zsh, if:"which git 1>/dev/null"
zplug "plugins/github", from:oh-my-zsh, if:"which hub 1>/dev/null"
zplug "plugins/gitignore", from:oh-my-zsh, if:"which git 1>/dev/null"
zplug "plugins/gnu-utils", from:oh-my-zsh
zplug "plugins/go", from:oh-my-zsh, if:"which go 1>/dev/null"
zplug "plugins/gpg-agent", from:oh-my-zsh, if:"which gpg-agent 1>/dev/null"
zplug "plugins/heroku", from:oh-my-zsh, if:"which heroku 1>/dev/null"
zplug "plugins/httpie", from:oh-my-zsh, if:"which http 1>/dev/null"
zplug "plugins/man", from:oh-my-zsh
zplug "plugins/osx", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
zplug "plugins/pip", from:oh-my-zsh, if:"which pip 1>/dev/null"
zplug "plugins/pod", from:oh-my-zsh, if:"which pod 1>/dev/null"
zplug "plugins/wp-cli", from:oh-my-zsh
zplug "plugins/xcode", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"
zplug "plugins/z", from:oh-my-zsh
zplug "zsh-users/zaw"
zplug "GeneralD/zaw-src-nerd-icon", on:"zsh-users/zaw", defer:2
zplug "GeneralD/zaw-src-directory", on:"zsh-users/zaw", defer:2
zplug "GeneralD/zaw-src-bitbucket", on:"zsh-users/zaw", defer:2
zplug "GeneralD/zaw-src-github", on:"zsh-users/zaw", defer:2
zplug "GeneralD/zaw-src-ghq", on:"zsh-users/zaw", on:"Tarrasch/zsh-functional", defer:2
zplug "GeneralD/zaw-src-package-managers", on:"zsh-users/zaw", defer:2
zplug "GeneralD/zaw-src-unity-launcher", on:"zsh-users/zaw", on:"Tarrasch/zsh-functional", on:"sttz/install-unity", defer:2
zplug "sttz/install-unity", as:command, use:'(*).py', rename-to:'$1', if:"[[ $OSTYPE == *darwin* ]]", hook-build:"pyenv versions --bare 2>/dev/null | gsort --version-sort --reverse | egrep '2.[0-9]+.[0-9]+' | head -n 1 > $ZPLUG_REPOS/sttz/install-unity/.python-version"
setopt auto_cd
setopt auto_param_keys
setopt auto_param_slash
setopt auto_pushd
setopt brace_ccl
setopt correct
setopt correct
setopt extended_glob
setopt extended_history
setopt hist_ignore_dups
setopt hist_ignore_space
setopt list_packed
setopt magic_equal_subst
setopt mark_dirs
setopt nolistbeep
setopt prompt_subst
setopt pushd_ignore_dups
setopt share_history
zstyle ':chpwd:*' recent-dirs-max 500
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z-_}={A-Za-z_-}'
zstyle ':completion:*:default' menu select=1
zstyle ':filter-select' case-insensitive yes
zstyle ':filter-select' extended-search yes
zstyle ':filter-select' hist-find-no-dups yes
zstyle ':filter-select' rotate-list yes
export HISTFILE=~/.zsh_history
export HISTSIZE=1000
export LISTMAX=0
export SAVEHIST=100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment