Skip to content
/ sshcd Public

Connect with SSH and cd (change directory) with one command.

License

Notifications You must be signed in to change notification settings

fraction/sshcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sshcd

Tired of having to type this janky command to ssh and cd into unfamiliar remote servers?

ssh -t user@fraction.io "cd /foo/bar; exec \$SHELL --login"

Stop it. Connect with SSH and cd (change directory) with one command.

sshcd user@fraction.io:/foo/bar

Installation

Use Homebrew to download and install the executable.

brew tap fraction/homebrew-formulae
brew install sshcd

Add 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/sshcd

Usage

The default usage is pretty simple.

sshcd user@fraction.io:/foo/bar

The tool supports prepended flags, too!

sshcd -v user@fraction.io:/foo/bar

Support

Please open an issue for questions and concerns.

Contributing

Fork the project, commit your changes, and open a pull request.