Last active
August 29, 2015 14:06
-
-
Save BernardoSilva/6add68acca7ca00f91ad to your computer and use it in GitHub Desktop.
Mac OSX Developper shortcuts
This file contains hidden or 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
# Config for MAMP | |
export PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH | |
# Show hidden files | |
alias showFiles="defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app" | |
# Hide hidden files | |
alias hideFiles="defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app" | |
# Git | |
alias gs="git status" | |
alias gsh="git show" | |
alias gc="git commit" | |
alias gch="git checkout" | |
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --no-merges" | |
# This will delete all your local branches already merged into current HEAD. | |
alias git-clear-branches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d' | |
# Format php code (this path is for symfony2 projects) | |
alias phpcsfixer fix src/*/ | |
# For projects that use node dependencies - this avoid npm global installs on machine | |
alias karma="node_modules/karma/bin/karma" | |
alias protractor="node_modules/protractor/bin/protractor" | |
# PM2 | |
alias pm2-karma="karma start app/config/karma.conf.js" | |
alias pm2-fixtures="app/console doctrine:mongodb:fixtures:load" | |
alias pm2-protractor-client="protractor app/config/protractor-e2e-client.conf.js" | |
alias pm2-protractor-client-suite="pm2-protractor-client --suite" | |
alias pm2-root="cd ~/Work/Twogether/vagrant-php53/www/" | |
# Patolas | |
alias patolas-root="cd ~/Work/Twogether/vagrant-php53/www/" | |
alias patolas-fixtures="bin/console doctrine:fixtures:load" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment