Last active
December 22, 2015 22:19
-
-
Save joehoyle/6539140 to your computer and use it in GitHub Desktop.
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
v() { | |
DIR=`echo $PWD | sed 's,.*/projects,,'` | |
ARGS=$* | |
ssh -t [email protected] "cd /srv/www${DIR} ; ${ARGS}" 2> /dev/null | |
} | |
alias wp="v wp" | |
alias grunt="v grunt" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Proxy commands to Vagrant
If you are running an uber-cool swanky vagrant environment, and you hate having to
vagrant ssh
to do some stuff like runningwp-cli
orgrunt
then this is for you! This simple function will let you proxy any command inside your Projects dir (if you are using Salty-WordPress or VVV)