Created
September 15, 2020 07:19
-
-
Save NaoY-2501/c9f71c3257e17a652623e593da3fd80f to your computer and use it in GitHub Desktop.
My .zshrc
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
| # ref. https://sanoto-nittc.hatenablog.com/entry/2017/12/16/213735 | |
| fpath=($(brew --prefix)/share/zsh/site-functions $fpath) | |
| # 補完機能有効化 | |
| autoload -U compinit | |
| compinit -u | |
| # 補完候補に色をつける | |
| autoload -U colors | |
| colors | |
| zstyle ':completion:*' list-colors "${LS_COLORS}" | |
| # 単語の入力途中でもTab補完を有効化 | |
| setopt complete_in_word | |
| # 補完候補をハイライト | |
| zstyle ':completion:*:default' menu select=1 | |
| # キャッシュの利用による補完の高速化 | |
| zstyle ':completion::complete:*' use-cache true | |
| # 大文字、小文字を区別せず補完する | |
| zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
| # 補完リストの表示間隔を狭くする | |
| setopt list_packed | |
| # コマンドの打ち間違いを指摘してくれる | |
| setopt correct | |
| SPROMPT="correct: $RED%R$DEFAULT -> $GREEN%r$DEFAULT ? [Yes/No/Abort/Edit] => " | |
| # 補完候補を一覧表示する | |
| setopt auto_list | |
| # TABで順に補完候補を切り替える | |
| setopt auto_menu | |
| # 補完候補一覧をTabや矢印で選択できるようにする | |
| zstyle ':completion:*:default' menu select=1 | |
| # 補完候補の色付け | |
| export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=46;34:cd=43;34:su=41;30:sg=46;30:tw=42;30:ow=43;30' | |
| zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
| # ヒストリファイルを作る | |
| export LANG=ja_JP.UTF-8 | |
| HISTFILE=$HOME/.zsh-history | |
| HISTSIZE=1000000 | |
| SAVEHIST=1000000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment