/ Published in: Bash
Expand |
Embed | Plain Text
# History HISTFILE=~/.zshistory HISTSIZE=2000 SAVEHIST=2000 setopt appendhistory setopt sharehistory setopt hist_ignore_all_dups setopt hist_ignore_space # Prompt autoload -U compinit promptinit compinit promptinit; prompt gentoo setopt autocd # Completion zstyle ':completion:*:descriptions' format '%U%B%d%b%u' zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' #setopt correctall # Key Bindings bindkey '^[[1~' beginning-of-line bindkey '^[[4~' end-of-line bindkey '^[[2~' overwrite-mode bindkey '^[[3~' delete-char bindkey '^[[6~' end-of-history bindkey '^[[5~' beginning-of-history bindkey '^[^I' reverse-menu-complete bindkey '^[OA' up-line-or-history bindkey '^[[A' up-line-or-history bindkey '^[[B' down-line-or-history bindkey '^[OB' down-line-or-history bindkey '^[OD' backward-char bindkey '^[OC' forward-char bindkey '^P' history-beginning-search-backward bindkey '^N' history-beginning-search-forward bindkey '^[[[A' run-help bindkey '^[[[B' which-command bindkey '^[[[C' where-is bindkey '^D' list-choices # Aliases alias ..="cd .." alias df="df -Ph" alias du="du -h" alias ls="ls --color" alias ll="ls --color=always -lh" alias la="ls --color=always -lha" alias less="less -R" alias grep="grep --color=auto" alias exit="clear && exit" alias su="sudo su" alias gvim="gvim -p" alias vim="vim -p" alias diff=colordiff alias diffstat="diffstat -f2 -r2" alias php-5.2=/usr/local/php-5.2/bin/php alias php-5.3=/usr/local/php-5.3/bin/php alias pdepend=/usr/local/src/pdepend/pdepend.php alias phpmd=/usr/local/src/phpmd/phpmd.php alias phploc=/usr/local/src/phploc/phploc.php alias phpcpd=/usr/local/src/phpcpd/phpcpd.php alias bytekit=/usr/local/src/bytekit-cli/bytekit.php alias phpdcd=/usr/local/src/phpdcd/phpdcd.php alias phpcb=/usr/local/src/phpcb/bin/phpcb.php alias phpdep=/usr/local/src/phpdep/phpdep.php alias xt2dot=/usr/local/src/xdebug-trace-tools/xt2dot.php alias xtdiff=/usr/local/src/xdebug-trace-tools/xtdiff.php alias phpcov=/usr/local/src/code-coverage/phpcov.php alias phptok=/usr/local/src/tokenstream/phptok.php alias ptrace="php -d xdebug.auto_trace=1 -d xdebug.trace_output_dir=`pwd`" alias pprofile="php -d xdebug.profiler_enable=1 -d xdebug.profiler_output_dir=`pwd`" export CFLAGS="-march=native -mtune=native -O2 -fPIC -pipe" export CXXFLAGS=$CFLAGS export EDITOR=vim export JAVA_HOME=/usr export CVS_RSH=ssh export PATH=/usr/local/php-5.3/bin:/usr/local/src/phpUnderControl/bin:/usr/lib/libming/bin:/var/lib/gems/1.8/bin:$PATH export LIBXCB_ALLOW_SLOPPY_LOCK=1 # Wrapper for "cvs diff" function cvsdiff() { cvs diff $@ | colordiff | less -R; } # Wrapper for "svn diff" function svndiff() { svn diff -x "--ignore-all-space --ignore-eol-style --unified --show-c-function" --no-diff-deleted $@ | colordiff | less -R; } # From http://woss.name/2007/02/01/display-svn-changelog-on-svn-up function svnrev() { svn info $@ | awk '/^Revision:/ {print $2}'; } # From http://woss.name/2007/01/01/display-svn-changelog-on-svn-up function svnup() { local old_revision=`svnrev $@` local first_update=$((${old_revision} + 1)) svn up -q $@ if [ $(svnrev $@) -gt ${old_revision} ]; then svn log -v -rHEAD:${first_update} $@ else echo "No changes." fi }
You need to login to post a comment.
