Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active June 16, 2017 02:42
Show Gist options
  • Save tommcfarlin/c337af437e59084382597f57431db798 to your computer and use it in GitHub Desktop.
Save tommcfarlin/c337af437e59084382597f57431db798 to your computer and use it in GitHub Desktop.
[Terminal, WordPress] A Primer in Bash for WordPress Developers
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"
export PATH
{
"require": {
"squizlabs/php_codesniffer": "2.9.1",
"wp-cli/wp-cli" : "~1.2.1",
"psy/psysh" : "~0.8.6"
}
}
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"
PATH="$PATH:$HOME/.composer/vendor/bin"
PATH="/Applications/MAMP/bin/php/php7.1.0/bin:$PATH"
export PATH
## Aliases to old versions of PHP.
alias php54="/Applications/MAMP/bin/php/php5.4.45/bin/php"
alias php55="/Applications/MAMP/bin/php/php5.5.38/bin/php"
alias php56="/Applications/MAMP/bin/php/php5.6.28/bin/php"
alias php70="/Applications/MAMP/bin/php/php7.0.13/bin/php"
source ~/.profile
PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" # The standard system binaries
PATH="$HOME/.composer/vendor/bin:$PATH" # Composer binaries
PATH="/Applications/MAMP/bin/php/php7.1.0/bin:$PATH" # MAMP's PHP7 loaded first
PATH="/Applications/MAMP/Library/bin:$PATH" # MAMP's MySQL loaded first
## Aliases to old versions of PHP.
alias php54="/Applications/MAMP/bin/php/php5.4.45/bin/php"
alias php55="/Applications/MAMP/bin/php/php5.5.38/bin/php"
alias php56="/Applications/MAMP/bin/php/php5.6.28/bin/php"
alias php70="/Applications/MAMP/bin/php/php7.0.13/bin/php"
export PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment