Last active
October 3, 2017 16:46
-
-
Save patricksuo/cafb50327d44f5f64f9a19ce98904923 to your computer and use it in GitHub Desktop.
part of .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
alias tlist="tmux list-session" | |
alias tnew="tmux new -s" | |
alias tattach="tmux attach -t" | |
alias siftx="sift -n -A3 -B3 --binary-skip --exclude-ext out" | |
alias siftn="sift -n --binary-skip --exclude-ext out, --exclude-dirs .svn" | |
alias svnst="svn st|grep -v \"?\"" | |
export TERM="xterm-256color" | |
# https://github.com/zeit/hyper/issues/1613#issuecomment-311172029 | |
unsetopt beep | |
function pgdev() { | |
if [ -z ${PGDEV+x} ]; then | |
export PGDEV="TRUE" | |
export PGOLDPATH="$PATH" | |
export PGBASE="/home/su21/pgsql" | |
export PGCODE="/home/su21/cproject/postgresql" | |
export PATH="$PATH:$PGBASE/bin" | |
fi | |
} | |
function pgexit() { | |
if [ -z ${PGDEV+x} ]; then | |
echo "not in pgdev env" | |
else | |
export PATH=$PGOLDPATH | |
unset PGDEV | |
unset PGOLDPATH | |
unset PGBASE | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment