Skip to content

Instantly share code, notes, and snippets.

@akatakritos
Created April 22, 2013 15:45
Show Gist options
  • Save akatakritos/5436165 to your computer and use it in GitHub Desktop.
Save akatakritos/5436165 to your computer and use it in GitHub Desktop.
ssh to same directory on a known server. useful when you have the same directory structure on your local machine as the server. put in your profile scripts.
function devserver {
echo "ssh devserver -t 'cd $PWD; bash --login'"
ssh devserver -t "cd $PWD; bash --login"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment