Created
November 23, 2011 07:02
-
-
Save rchavik/1388060 to your computer and use it in GitHub Desktop.
Setup PATH to work with multiple cakephp version
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
export DEFAULT_PATH=$PATH | |
export CORE=~/work/core | |
uncake() { | |
unset CAKE | |
export PATH=$DEFAULT_PATH | |
} | |
setcake() { | |
export PATH=$DEFAULT_PATH:$CAKE/cake/console | |
} | |
setcake2() { | |
export PATH=$DEFAULT_PATH:$CAKE/Cake/Console | |
} | |
cake_1_2_4_8284() { | |
uncake | |
export CAKE=$CORE/cake_1.2.4.8284 | |
setcake | |
} | |
cake_1_2_5() { | |
uncake | |
export CAKE=$CORE/cake_1.2.5 | |
setcake | |
} | |
cake_1_3() { | |
uncake | |
export CAKE=$CORE/cake_1.3 | |
setcake | |
} | |
cake_2_0() { | |
uncake | |
export CAKE=$CORE/cake_2.0/lib | |
setcake2 | |
} | |
cake_2_0_pristine() { | |
uncake | |
export CAKE=$CORE/cake_2.0-clean/lib | |
setcake2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment