Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:bash:profile [2010/03/17 15:06] – billh | docs:bash:profile [2013/05/09 11:12] (current) – billh | ||
---|---|---|---|
Line 15: | Line 15: | ||
export PATH=/ | export PATH=/ | ||
export HOME=/ | export HOME=/ | ||
+ | </ | ||
+ | |||
+ | ===== php ===== | ||
+ | <code bash> | ||
+ | ################################################################################ | ||
+ | # PHP STUFF | ||
+ | ################################################################################ | ||
+ | # lint (syntax) check all php files from current dir recursively | ||
+ | function lcphp() | ||
+ | { | ||
+ | find . -name " | ||
+ | #php -l " | ||
+ | / | ||
+ | done | ||
+ | } | ||
</ | </ | ||
===== svn ===== | ===== svn ===== | ||
- | < | + | < |
+ | ################################################################################ | ||
+ | # SVN STUFF | ||
+ | ################################################################################ | ||
alias ss=' | alias ss=' | ||
- | alias sd=' | + | |
+ | # 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=' | ||
</ | </ | ||
===== git ===== | ===== git ===== | ||
- | < | + | < |
+ | ################################################################################ | ||
+ | # GIT STUFF | ||
+ | ################################################################################ | ||
alias gb=' | alias gb=' | ||
+ | |||
+ | # 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=' | ||
alias gd=' | alias gd=' | ||
- | alias gg=' | + | alias gdc=' |
- | alias gk=' | + | |
- | alias gka=' | + | # an update early in 2012 to cygwin' |
+ | # 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=' | ||
+ | #alias gk=' | ||
+ | |||
+ | # Cygwin git / msysgit hybrid (checks if x server is available) | ||
+ | alias gg="([ \" | ||
+ | alias gk="([ \" | ||
+ | alias gka=" | ||
+ | |||
+ | # | ||
+ | alias tgg="/ | ||
+ | alias tgk="/ | ||
+ | |||
+ | #msysgit | ||
+ | alias mgg="/ | ||
+ | alias mgk="/ | ||
+ | |||
+ | #alias gka=' | ||
+ | alias gl=' | ||
+ | alias gsl=' | ||
+ | alias gss=' | ||
+ | alias gsp=' | ||
+ | alias gsa=' | ||
# gs conflicts with ghostscript, | # gs conflicts with ghostscript, | ||
Line 52: | Line 107: | ||
fi | fi | ||
} | } | ||
+ | |||
+ | function parse_git_branch { | ||
+ | ref=$(git symbolic-ref HEAD 2> /dev/null) || return | ||
+ | echo " | ||
+ | } | ||
+ | |||
+ | if [ -e " | ||
+ | source " | ||
+ | fi | ||
</ | </ | ||
Line 57: | Line 121: | ||
< | < | ||
alias php='/ | alias php='/ | ||
+ | alias open='/ | ||
+ | alias gvim='/ | ||
# this was required to make rxvt show man pages correctly | # this was required to make rxvt show man pages correctly |