Skip to content

Commit

Permalink
Some more aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
dave1010 committed Apr 10, 2012
1 parent 234e131 commit 05e6ca5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,18 @@ alias ack='ack-grep' # http://betterthangrep.com/
alias hl='ack --passthru' # highlight

#misc
alias o='gnome-open' # open a file with gnome's default handler
alias r='fc -s' # run command in bash history
alias g='git' # as i use git so much
alias ss='ge /home/base/bin/sublimetext2/sublime_text'
alias xc='xclip -selection c' # copy stdin to x clipboard
alias eb='$EDITOR ~/.bashrc'
alias sb='source ~/.bashrc'

#development
alias phplint="php -l"
alias phplintall="find . -name '*.php' -exec php -l {} \; | grep -v 'No syntax errors detected'"
alias jshint='rhino /home/base/projects/jshint/env/rhino.js'
#alias jshint='rhino /home/base/projects/jshint/env/rhino.js'
alias jshintall="find -name '*.js' -exec rhino /home/base/projects/jshint/env/rhino.js {} \;"
alias tailphperror="tail -n 20 -f /var/log/apache2/error.log | sed 's/\\n/\n/g'"
alias phpunitslow='phpunit --no-configuration --group slow --verbose tests'
Expand Down Expand Up @@ -70,7 +73,7 @@ function mysqlref() {
echo 'DESCRIBE table; SHOW CREATE TABLE table'
echo 'SHOW PROCESSLIST; KILL process_number'
echo
echo 'CREATE TABLE table (id INT(11), title VARCHAR(255), PRIMARY KEY (id))'
echo 'CREATE TABLE table (id INT(11) AUTO_INCREMENT, title VARCHAR(255), PRIMARY KEY (id))'
echo 'update wp_options set option_value ="http://example.com" where option_name like "home" or option_name like "siteurl"'
}

Expand Down

0 comments on commit 05e6ca5

Please sign in to comment.