Skip to content

Instantly share code, notes, and snippets.

@joehoyle
Last active December 22, 2015 22:19
Show Gist options
  • Select an option

  • Save joehoyle/6539140 to your computer and use it in GitHub Desktop.

Select an option

Save joehoyle/6539140 to your computer and use it in GitHub Desktop.
v() {
DIR=`echo $PWD | sed 's,.*/projects,,'`
ARGS=$*
ssh -t vagrant@192.168.50.10 "cd /srv/www${DIR} ; ${ARGS}" 2> /dev/null
}
alias wp="v wp"
alias grunt="v grunt"
@westonruter
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment