Skip to content

Instantly share code, notes, and snippets.

@dpavlin
Created February 1, 2016 16:45
Show Gist options
  • Save dpavlin/c314a7821ef80671bae2 to your computer and use it in GitHub Desktop.
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
#!/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