.zshrcの設定について
ついでに.zshrcの設定もメモろう。
参考にしたのはこちらのサイト。ちゅーか導入したばかりでお試し中につき、丸パクリ状態・・・
# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=20000 SAVEHIST=20000 bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename '/home/bounoki/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall setopt ignore_eof zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' autoload -U colors ; colors PROMPT="%{$fg[green]%}%m@%n[%h]%#%{$reset_color%} " RPROMPT="%{$fg[green]%}[%(5~,%-2~/.../%2~,%~)]${WINDOW:+"[$WINDOW]"}%{$reset_color%}" preexec () { if [[ "$TERM" == "screen" ]]; then local CMD=${1[(wr)^(*=*|sudo|-*)]} echo -ne "\ek$CMD\e\\" fi }