-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MAMP's PHP to the only if MAMP is installed
- Loading branch information
1 parent
1e43ed6
commit 11dfea7
Showing
2 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,20 @@ | ||
# Make sure that the PHP install in MAMP is the first one if we're on OSX. | ||
is-osx && export PATH=/Applications/MAMP/bin/php/php5.5.10/bin | ||
# Start with a clean slate, with only the scripts in the `bin` directory of the | ||
# $DOTFILES. | ||
PATH="$DOTFILES/bin" | ||
|
||
# Standard PATH entries. | ||
export PATH=$PATH:/usr/local/sbin | ||
export PATH=$PATH:/usr/local/bin | ||
export PATH=$PATH:/usr/bin | ||
export PATH=$PATH:/usr/sbin | ||
export PATH=$PATH:/bin | ||
export PATH=$PATH:/sbin | ||
export PATH="$PATH:/usr/local/sbin" | ||
export PATH="$PATH:/usr/local/bin" | ||
export PATH="$PATH:/usr/bin" | ||
export PATH="$PATH:/usr/sbin" | ||
export PATH="$PATH:/bin" | ||
export PATH="$PATH:/sbin" | ||
|
||
# RVM. | ||
export PATH=$PATH:$HOME/.rvm/bin | ||
export PATH="$PATH:$HOME/.rvm/bin" | ||
|
||
# bin/ directory in the dotfiles. | ||
export PATH=$PATH:$DOTFILES/bin | ||
# Make sure that the PHP install in MAMP is the first one if we're on OSX and | ||
# MAMP is installed. | ||
if is-osx && is-mamp-installed; then | ||
export PATH="$(mamp-latest-php-bin-dir):$PATH" | ||
fi |