https://github.com/fraction/sshcd
Connect with SSH and cd (change directory) with one command.
https://github.com/fraction/sshcd
Last synced: about 1 year ago
JSON representation
Connect with SSH and cd (change directory) with one command.
- Host: GitHub
- URL: https://github.com/fraction/sshcd
- Owner: fraction
- License: other
- Created: 2014-02-12T10:16:07.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-11-07T03:15:24.000Z (over 10 years ago)
- Last Synced: 2024-04-14T23:30:13.215Z (about 2 years ago)
- Language: Shell
- Homepage:
- Size: 320 KB
- Stars: 170
- Watchers: 10
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sshcd
Tired of having to type this janky command to [ssh](http://manpages.ubuntu.com/manpages/saucy/en/man1/ssh.1.html) and [cd](http://manpages.ubuntu.com/manpages/saucy/en/man1/cd.1posix.html) into unfamiliar remote servers?
```sh
ssh -t user@fraction.io "cd /foo/bar; exec \$SHELL --login"
```
Stop it. Connect with SSH and cd (change directory) with one command.
```sh
sshcd user@fraction.io:/foo/bar
```
## Installation
Use Homebrew to download and install the executable.
```sh
brew tap fraction/homebrew-formulae
brew install sshcd
```
Add the executable into your path and give it permissions.
```sh
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.
```sh
sshcd user@fraction.io:/foo/bar
```
The tool supports prepended flags, too!
```sh
sshcd -v user@fraction.io:/foo/bar
```
## Support
Please [open an issue](https://github.com/fraction/sshcd/issues/new) for questions and concerns.
## Contributing
Fork the project, commit your changes, and [open a pull request](https://github.com/fraction/sshcd/compare/).