zshの設定
zshの設定ファイル.zshrcを公開します.
まだまだ使い慣れてない感じがあるのでどんどんと更新していこうと思います.
漢のzshを見ながらコマンド一つ一つを確認しながら作りました.
結構時間かかりますねこれ.
ディレクトリ表示して改行してるので二行となってます.
# zsh設定ファイル # 言語・エンコード設定 export LANG=ja_JP.UTF-8 # デフォルト設定 autoload colors colors if [ `whoami` = root ]; then PROMPT="[%{${fg[cyan]}%}%~%{${reset_color}%}] <%{${fg[red]}%}@%m%{${reset_color}%}> %E%b%#" else PROMPT="[%{${fg[cyan]}%}%~%{${reset_color}%}] <%{${fg[green]}%}@%m%{${reset_color}%}> %E%b%#" fi SPROMPT="%{${fg[red]}%}Correct %{${reset_color}%}> '%r' [%BY%bes %BN%bo %BA%bbort %BE%bdit] ? " # 自動ディレクトリ変更 setopt auto_cd # ディレクトリ情報の保存 setopt auto_pushd # コマンド自動補正 setopt correct # リストをコンパクトに表示 setopt list_packed # /の自動削除無効化 setopt noautoremoveslash # 補完ビープ音無効化 setopt nolistbeep # コマンド履歴の検索 bindkey -v autoload history-search-end zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-forward-end history-search-end bindkey "^P" history-beginning-search-backward-end bindkey "^N" history-beginning-search-forward-end # コマンド履歴保存 # HISTORY HISTFILE=~/.zsh_history HISTSIZE=20000 SAVEHIST=200000000 setopt hist_ignore_dups setopt share_history # 補完機能有効化 autoload -U compinit compinit # 先行予測機能有効化 #autoload predict-on #predict-on # ls色設定 export LSCOLORS=gxfxxxxxcxxxxxxxxxgxgx alias ls="ls -G" # 補完の色設定 zstyle ':completion:*' list-colors 'di=36' 'ln=35' 'ex=32' 'bd=37' 'cd=37' 'su=37' 'sg=37' 'tw=36' 'ow=36' #PythonPATH追加 PATH=/opt/local/var/macports/software/python_select/0.3_0/opt/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:$PATH #vim export EDITOR=/Applications/MacVim.app/Contents/MacOS/Vim alias vi='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"' alias vim='env LANG=ja_JP.UTF-8 /Applications/MacVim.app/Contents/MacOS/Vim "$@"'