Created
February 1, 2016 16:45
-
-
Save dpavlin/c314a7821ef80671bae2 to your computer and use it in GitHub Desktop.
create command to copy/paste into local termnial to cd into sshfs mounted directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -xe | |
# create command to copy/paste into local termnial to cd into sshfs mounted directory | |
echo "test -d /mnt/`hostname -s` || mkdir /mnt/`hostname -s` && df -t fuse.sshfs /mnt/`hostname -s` || sshfs `hostname -f`:/ /mnt/`hostname -s`/ && cd /mnt/`hostname -s`/`pwd`/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment