Created
September 19, 2014 11:43
-
-
Save rvanlieshout/3e17fc2e68d611818958 to your computer and use it in GitHub Desktop.
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
v() { | |
vagrant_commands=(box connect destroy global-status halt help init login package plugin provision rdp reload resume share ssh ssh-config status suspend up version) | |
if [[ ${vagrant_commands[(r)$1]} == $1 ]] | |
then | |
vagrant $* | |
else | |
vagrant ssh -c "$*" | |
fi | |
} | |
alias rails='v rails' | |
alias cap='v cap' | |
alias bundle='v bundle' | |
alias rake='v rake' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment