Skip to content

Instantly share code, notes, and snippets.

@itochan
Created August 28, 2011 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itochan/1176297 to your computer and use it in GitHub Desktop.
Save itochan/1176297 to your computer and use it in GitHub Desktop.
# 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_"
}
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 "^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 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"
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