Last active
May 21, 2018 09:05
-
-
Save settachok/963f8e3f5316e739f4d99bce1d4be7a0 to your computer and use it in GitHub Desktop.
.bashrc alias for php and composer
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
#Load folder-specific .bashrc or .bash_profile | |
PROMPT_COMMAND='if [[ "$bashrc" != "$PWD" && "$PWD" != "$HOME" && -e .bashrc ]]; then bashrc="$PWD"; . .bashrc; fi' | |
alias php='docker run -it --rm -v $(pwd -W):/app -w "//app" php php' | |
alias composer='docker run -it --rm -v $(pwd -W):/app composer' | |
alias node='docker run -it --rm -v $(pwd -W):/app -w "//app" node node' | |
alias npm='docker run -it --rm -v $(pwd -W):/app -w "//app" node npm' |
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
alias php='docker-compose run app php' | |
alias node='docker-compose run node node' | |
alias npm='docker-compose run node npm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment