Last active
May 25, 2018 13:40
-
-
Save mizofumi/7ab53c593b9b47fd497c to your computer and use it in GitHub Desktop.
ごちうさzsh
This file contains hidden or 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
| autoload -U colors; colors | |
| setopt correct | |
| setopt re_match_pcre | |
| setopt prompt_subst | |
| PROMPT=" | |
| ((\ | |
| °(๑•௰•).oO(%~) | |
| %(?.%{$fg[green]%}.%{$fg[blue]%})%(?!( *'-')<!( ˚˃̣̣⌓˂̣̣%)?<)%{${reset_color}%} " | |
| PROMPT2='[%n]> ' | |
| SPROMPT=" | |
| ((\ | |
| °(๑•௰•).oO(%~) | |
| %{$fg[red]%}%{$suggest%}!( °-°%) < 心愛さん、もしかして %B%r%b %{$fg[red]%}で | |
| すか? [そう!(y), 違う!(n),a,e]:${reset_color} " |
This file contains hidden or 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 LANG=ja_JP.UTF-8 | |
| export LC_ALL=ja_JP.UTF-8 | |
| export ZPLUG_LOG_LOAD_SUCCESS=true | |
| export ZPLUG_LOG_LOAD_FAILURE=true | |
| export HISTFILE=~/.zsh_history | |
| export HISTSIZE=10000 | |
| export SAVEHIST=10000 | |
| export ZPLUG_HOME=/usr/local/opt/zplug | |
| if ! [ type "zplug" > /dev/null 2>&1 ]; then | |
| source $ZPLUG_HOME/init.zsh | |
| fi | |
| autoload -U promptinit; promptinit | |
| # プロンプトを変更 | |
| prompt pure | |
| setopt auto_cd | |
| zplug 'zsh-users/zsh-autosuggestions' | |
| zplug 'zsh-users/zsh-completions' | |
| zplug 'zsh-users/zsh-syntax-highlighting' | |
| zplug "mollifier/anyframe" | |
| zplug "mollifier/cd-gitroot" | |
| # zplug "b4b4r07/enhancd", use:enhancd.sh | |
| #zplug "zsh-users/zsh-history-substring-search", hook-build:"__zsh_version 4.3" | |
| # history関係 | |
| zplug "zsh-users/zsh-history-substring-search" | |
| # タイプ補完 | |
| zplug "zsh-users/zsh-autosuggestions" | |
| zplug "zsh-users/zsh-completions" | |
| zplug "chrissicool/zsh-256color" | |
| zplug "junegunn/fzf-bin", as:command, from:gh-r, rename-to:fzf | |
| zplug "junegunn/fzf", as:command, use:bin/fzf-tmux | |
| zplug "supercrabtree/k" | |
| zplug "junegunn/fzf", use:shell/key-bindings.zsh | |
| zplug "junegunn/fzf", use:shell/completion.zsh | |
| # zplug "b4b4r07/enhancd", use:init.sh | |
| zplug "paulirish/git-open", as:plugin | |
| zplug "zsh-users/zsh-syntax-highlighting", defer:2 | |
| #: "cd先のディレクトリのファイル一覧を表示する" && { | |
| # [ -z "$ENHANCD_ROOT" ] && function chpwd { tree -L 1 } # enhancdがない場合 | |
| # [ -z "$ENHANCD_ROOT" ] || export ENHANCD_HOOK_AFTER_CD="tree -L 1" # enhancdがあるときはそのHook機構を使う | |
| #} | |
| : "sshコマンド補完を~/.ssh/configから行う" && { | |
| function _ssh { compadd $(fgrep 'Host ' ~/.ssh/*/config | grep -v '*' | awk '{print $2}' | sort) } | |
| } | |
| # 未インストール項目をインストールする | |
| if ! zplug check --verbose; then | |
| printf "Install? [y/N]: " | |
| if read -q; then | |
| echo; zplug install | |
| fi | |
| fi | |
| # コマンドをリンクして、PATH に追加し、プラグインは読み込む | |
| zplug load --verbose | |
| sleep 0.4; clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment