Created
September 8, 2011 17:20
-
-
Save itochan/1203980 to your computer and use it in GitHub Desktop.
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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.zsh_history | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
#bindkey -v | |
# End of lines configured by zsh-newuser-install | |
export LANG=ja_JP.UTF-8 | |
export GIT_SSL_NO_VERIFY=true | |
export TERM=xterm-256color | |
autoload -Uz colors | |
colors | |
autoload -Uz compinit | |
compinit | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' formats '(%s)-[%b]' | |
zstyle ':vcs_info:*' actionformats '(%s)-[%b|%a]' | |
precmd () { | |
psvar=() | |
LANG=en_US.UTF-8 vcs_info | |
[[ -n "$vcs_info_msg_0_" ]] && psvar[1]="$vcs_info_msg_0_" | |
} | |
#PROMPT settings | |
RPROMPT="%1(v|%F{green}%1v%f|)" | |
PROMPT="[%n@%m]%~%# " | |
setopt share_history | |
setopt correct | |
setopt list_packed | |
setopt complete_aliases | |
setopt nolistbeep | |
setopt auto_cd | |
setopt auto_pushd | |
setopt pushd_ignore_dups | |
if [ ! -f ~/.zshrc_env ]; then | |
eval `dircolors` | |
export ZLS_COLORS=$LS_COLORS | |
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} | |
fi | |
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
zstyle ':completion:*:default' menu select | |
#bindkey settings | |
bindkey "^R" history-incremental-search-backward | |
bindkey "^S" history-incremental-search-forward | |
bindkey "^?" backward-delete-char | |
bindkey "^H" backward-delete-char | |
bindkey "^[[3~" delete-char | |
bindkey "^[[1~" beginning-of-line | |
bindkey "^[[4~" end-of-line | |
# alias settings | |
alias l.="ls -d .* --color=tty" | |
alias ll="ls -l --color=tty" | |
alias ls="ls --color=tty" | |
alias cp="cp -i" | |
alias mv="mv -i" | |
alias rm="rm -i" | |
alias vi="vim" | |
alias wget="wget --no-check-certificate" | |
alias which="which -a" | |
alias sudo='A=`alias` sudo' | |
alias grep="grep --color=auto" | |
alias git-submodule-update="git submodule foreach 'git pull origin master' && git submodule update" | |
# shit emacs!!!!!!!!! | |
alias emacs="echo shit" | |
alias emacs_is_very_ugly_editor="emacs" | |
alias emacs_is_very_ugly_editor_寿限無寿限無五劫の擦り切れ海砂利水魚の水行末雲来末風来末食う寝る処に住む処やぶら小路の藪柑子パイポパイポパイポのシューリンガンシューリンガンのグーリンダイグーリンダイのポンポコピーのポンポコナーの長久命の長助='emacs' | |
alias emacshit='vim' | |
if [[ -f ~/.screenrc_env ]]; then | |
alias screen="screen -c ~/.screenrc_env" | |
fi | |
if [ -f /etc/zsh_command_not_found ]; then | |
. /etc/zsh_command_not_found | |
fi | |
case "${TERM}" in (kterm*|xterm) | |
precmd() { | |
echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD}\007" | |
} | |
esac | |
PATH=~/local/bin:/usr/kerberos/bin:~/bin:/usr/local/bin:/bin:/usr/bin:/home/itochan/bin:/usr/local/tripwire/sbin:/sbin/:/usr/sbin:~/ruby/local/bin | |
if [[ -e ~/.zshrc_env ]]; then | |
source ~/.zshrc_env | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment