#LS_COLORS='rs=0:di=00;97;44:ln=00;36:pi=40;33:so=00;35:do=00;35:bd=40;33;00:cd=40;33;00:or=40;31;00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.dz=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tbz2=00;31:*.tz=00;31:*.deb=00;31:*.rpm=00;31:*.jar=00;31:*.rar=00;31:*.ace=00;31:*.zoo=00;31:*.cpio=00;31:*.7z=00;31:*.rz=00;31:*.jpg=00;35:*.jpeg=00;35:*.gif=00;35:*.bmp=00;35:*.pbm=00;35:*.pgm=00;35:*.ppm=00;35:*.tga=00;35:*.xbm=00;35:*.xpm=00;35:*.tif=00;35:*.tiff=00;35:*.png=00;35:*.svg=00;35:*.svgz=00;35:*.mng=00;35:*.pcx=00;35:*.mov=00;35:*.mpg=00;35:*.mpeg=00;35:*.m2v=00;35:*.mkv=00;35:*.ogm=00;35:*.mp4=00;35:*.m4v=00;35:*.mp4v=00;35:*.vob=00;35:*.qt=00;35:*.nuv=00;35:*.wmv=00;35:*.asf=00;35:*.rm=00;35:*.rmvb=00;35:*.flc=00;35:*.avi=00;35:*.fli=00;35:*.flv=00;35:*.gl=00;35:*.dl=00;35:*.xcf=00;35:*.xwd=00;35:*.yuv=00;35:*.axv=00;35:*.anx=00;35:*.ogv=00;35:*.ogx=00;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:';
#export LS_COLORS
#alias ls='ls --color=auto'
alias ls='ls -lFh --color=none'
alias l='cd /cygdrive/c/htdocs/projects/lib'
alias p='cd /cygdrive/c/htdocs/projects'
alias gpg='gpg --no-secmem-warning'
export SVN_EDITOR=vi
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
export HOME=/cygdrive/h
################################################################################
# PHP STUFF
################################################################################
# lint (syntax) check all php files from current dir recursively
function lcphp()
{
find . -name "*.php" | while read file;do
#php -l "${file}"
/cygdrive/c/php5.2.9/php.exe -c c:\\php5.2.9\\php.ini -l "${file}"
done
}
################################################################################
# SVN STUFF
################################################################################
alias ss='svn status'
# the -p parameter tells less to start a search for this pattern; this pattern
# is the section break between files, so you can immediately start pressing n to
# jump between files in a diff
alias sd='svn diff -x --ignore-eol-style | less -p =======.*'
################################################################################
# GIT STUFF
################################################################################
alias gb='git branch -a'
# the -p parameter tells less to start a search for this pattern; this pattern
# is the section break between files, so you can immediately start pressing n to
# jump between files in a diff
#alias gd='git diff|less -p "^diff .*"'
alias gd='git diff'
alias gdc='git diff --cached|less -p "^diff .*"'
# an update early in 2012 to cygwin's tcl/tk package forced everything using
# tcl/tk to be ran on an X windows server, so these gui aliases are now
# kickstarting TortoiseGit and msysgit programs instead
# Cygwin git
#alias gg='git gui&'
#alias gk='gitk&'
# Cygwin git / msysgit hybrid (checks if x server is available)
alias gg="([ \"\$(ps|grep XWin)\" ] && git gui || mgg)&"
alias gk="([ \"\$(ps|grep XWin)\" ] && gitk || mgk)&"
alias gka="([ \"\$(ps|grep XWin)\" ] && gitk || mgk --all)&"
#TortoiseGit
alias tgg="/cygdrive/c/Program\ Files/TortoiseGit/bin/TortoiseProc.exe /command:repostatus /path:\"\`cygpath -m -a .\`\" &"
alias tgk="/cygdrive/c/Program\ Files/TortoiseGit/bin/TortoiseProc.exe /command:log /path:\"\`cygpath -m -a .\`\" &"
#msysgit
alias mgg="/cygdrive/c/Program\ Files\ \(x86\)/Git/bin/git gui"
alias mgk="/cygdrive/c/Program\ Files\ \(x86\)/Git/bin/wish.exe \"C:/Program Files (x86)/Git/bin/gitk\""
#alias gka='gitk --all&'
alias gl='git log --abbrev-commit'
alias gsl='git stash list'
alias gss='git stash save'
alias gsp='git stash pop'
alias gsa='git stash apply'
# gs conflicts with ghostscript, so we need to assume that ghostscript will
# always have arguments
# gs => git status
# gc -arg1 -arg2 => /usr/bin/gs -arg1 -arg2
function gs {
if [ -z "$1" ]; then
git status
else
`which gs` $1
fi
}
# gc => git checkout master
# gc bugs => git checkout bugs
function gc {
if [ -z "$1" ]; then
git checkout master
else
git checkout $1
fi
}
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
if [ -e "${HOME}/.git-completion.sh" ] ; then
source "${HOME}"/.git-completion.sh
fi
alias php='/cygdrive/c/php5.2.9/php.exe -c c:\\php5.2.9\\php.ini'
alias open='/cygdrive/c/windows/explorer.exe'
alias gvim='/cygdrive/c/Program\ Files/Vim/vim72/gvim.exe'
# this was required to make rxvt show man pages correctly
export LANG=en_US
# this is to use a mount point with default windows permissions
mount -f -o binary,posix=0,noacl //some/unc/path /sharename