Created
February 14, 2013 06:25
-
-
Save tomotaka/4950959 to your computer and use it in GitHub Desktop.
my .zshrc
This file contains 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
setopt prompt_subst | |
setopt print_eight_bit | |
setopt no_flow_control | |
setopt hist_ignore_dups | |
setopt hist_reduce_blanks | |
#setopt share_history | |
HISTFILE=~/.zsh_history | |
HISTSIZE=10000 | |
SAVEHIST=10000 | |
autoload -Uz compinit | |
compinit -u | |
autoload -U colors; colors | |
autoload -Uz vcs_info | |
#function rprompt-git-current-branch { | |
# local name st color | |
# | |
# if [[ "$PWD" =~ '/\.git(/.*)?$' ]]; then | |
# return | |
# fi | |
# | |
# name=$(basename "`git symbolic-ref HEAD 2> /dev/null`") | |
# if [[ -z $name ]]; then | |
# return | |
# fi | |
# st=`git status 2> /dev/null` | |
# if [[ -n `echo "$st" | grep "^nothing to"` ]]; then | |
# color=${fg[green]} | |
# elif [[ -n `echo "$st" | grep "^nothing added"` ]]; then | |
# color=${fg[yellow]} | |
# elif [[ -n `echo "$st" | grep "^# Untracked"` ]]; then | |
# color=${fh_bold[red]} | |
# else | |
# color=${fg[red]} | |
# fi | |
# | |
# echo "[%{$color%}$name%{$reset_color%}]" | |
#} | |
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_" | |
} | |
export PATH=$PATH:/usr/local/bin:/usr/local/mysql/bin | |
export PATH=$PATH:~/bin | |
export PATH=$PATH:~/android-sdk/tools | |
export PATH=$PATH:~/android-sdk/platform-tools | |
export PATH=$PATH:/opt/local/bin | |
export PATH=$PATH:/opt/local/sbin | |
export PATH=$PATH:/Applications/pTeX.app/teTeX/bin | |
export PATH=$PATH:~/local/bin | |
export PATH=$PATH:~/android-sdk/tools:~/dart-sdk/bin | |
local CLR_GREEN=$'%{\e[1;32m%}' | |
local CLR_RED=$'%{\e[1;31m%}' | |
local CLR_BLUE=$'%{\e[1;34m%}' | |
#local CLR_DEFAULT=$'%{\e[1;m%}' | |
local CLR_DEFAULT=$'%{\e[0;m%}' | |
local MYHOST=lime | |
#PROMPT='\[\033[01;32m\]\u\[\033[00m\]@\[\033[01;31m\]tmbp\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
#PROMPT=`rprompt-git-current-branch`${CLR_GREEN}${USER}${CLR_DEFAULT}@${CLR_RED}${MYHOST}${CLR_DEFAULT}:${CLR_BLUE}%~${CLR_DEFAULT}'$ ' | |
PROMPT=${CLR_GREEN}${USER}${CLR_DEFAULT}@${CLR_RED}${MYHOST}${CLR_DEFAULT}:${CLR_BLUE}%~${CLR_DEFAULT}'$ ' | |
#RPROMPT='[`rprompt-git-current-branch`]' | |
RPROMPT="%1(v|%F{green}%1v%f|)" | |
alias ls="ls -GF" | |
alias ll="ls -lha" | |
alias scrls="screen -ls" | |
alias scrr="screen -r" | |
alias olive="ssh olive" | |
alias sepia="ssh sepia" | |
alias minizango"ssh minizango" | |
alias zangoef="ssh zangoef" | |
alias tmtkair="ssh tmtkair.local" | |
alias tmbp="ssh tmbp.local" | |
alias tailf="tail -f" | |
alias grep="grep --color=auto" | |
alias fgrep="fgrep --color=auto" | |
alias egrep="egrep --color=auto" | |
alias -g H="| head" | |
alias -g L="| less" | |
alias -g T="| tail" | |
export LANG=ja_JP.UTF-8 | |
__git_files () { | |
_wanted files expl 'local files' _files | |
} | |
[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm | |
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment