私の.zshrc
ビンゴ中西です。
zshを使いだしたので、.zshrcを書きました。
################################################################ # デフォルトの補完機能を有効にする ################################################################ autoload -U compinit compinit -u ################################################################ # 環境変数 ################################################################ export LANG=ja_JP.UTF-8 ################################################################ # プロンプト ################################################################ PROMPT="%n@%~%# " ################################################################ # alias ################################################################ alias ll="ls -l" alias di="dirs | tr ' ' '\n'" ################################################################ # ディレクトリ移動 ################################################################ setopt auto_cd #ディレクトリ名だけで移動する setopt auto_pushd #自動でディレクトリをpushする ################################################################ # 補完 ################################################################ setopt noautoremoveslash #末尾の/を自動的に消さない setopt nolistbeep #ビープ音をならさない setopt list_packed #リスト表示をつめて表示 setopt correct #存在しないコマンドのとき近いコマンドを表示 setopt complete_aliases #エイリアスも補完 ################################################################ # Emacsバインド ################################################################ bindkey -e 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 bindkey "\\ep" history-beginning-search-backward-end bindkey "\\en" history-beginning-search-forward-end bindkey "^[[Z" reverse-menu-complete # Shift-Tabで補完候補を逆順する ################################################################ # history ################################################################ HISTFILE=~/.zsh_history HISTSIZE=10000 SAVEHIST=10000 function history-all { history -E 1 } # 全履歴の一覧を出力する setopt hist_ignore_dups # ダブった履歴を無視する setopt share_history # ヒストリを共有する