Tired of having to type this janky command to ssh and cd into unfamiliar remote servers?
ssh -t [email protected] "cd /foo/bar; exec \$SHELL --login"Stop it. Connect with SSH and cd (change directory) with one command.
sshcd [email protected]:/foo/barUse Homebrew to download and install the executable.
brew tap fraction/homebrew-formulae
brew install sshcdAdd the executable into your path and give it permissions.
sudo curl -Lo /usr/local/bin/sshcd http://git.io/wfAXEQ
sudo chmod +x /usr/local/bin/sshcdThe default usage is pretty simple.
sshcd [email protected]:/foo/barThe tool supports prepended flags, too!
sshcd -v [email protected]:/foo/barPlease open an issue for questions and concerns.
Fork the project, commit your changes, and open a pull request.