Created
November 22, 2011 16:02
-
-
Save neiraza/1386004 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 compinit | |
compinit | |
# 補完をつめて表示 | |
setopt list_packed | |
# プロンプト設定 | |
PROMPT="%B%{^[[1;36m%}%n#%{^[m%}%b " | |
RPROMPT="%B%{^[[1;33m%}%/#%{^[m%}%b " | |
PROMPT2="%B%{^[[1;31m%}%_#%{^[m%}%b " | |
SPROMPT="%B%{^[[1;35m%}%r is correct? [n,y,a,e]:%{^[m%}%b " | |
[ -n "${REMOTEHOST}${SSH_CONNECTION}" ] && | |
PROMPT="%{%}${HOST%%.*} ${PROMPT}" | |
# 履歴 | |
HISTFILE=~/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
setopt hist_ignore_dups # ignore duplication command history list | |
setopt share_history # share command history data | |
# viライクなキーバインド設定 | |
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 | |
# cd省略 | |
setopt auto_cd | |
# cd記憶 | |
setopt auto_pushd | |
# コマンド間違ってもおしえてあげる | |
setopt correct | |
# encoding | |
export LANG=ja_JP.UTF-8 | |
# | |
alias list | |
alias ls="ls -al" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment