Mount remote directories over sshfs

Björn Wärmedal 90aa249017 Check if endpoint is mounted/unmounted before attempting to mount/unmount 2 anni fa
LICENSE 7279af2431 Fixed README and LICENSE 2 anni fa
README.md 7279af2431 Fixed README and LICENSE 2 anni fa
remnt 90aa249017 Check if endpoint is mounted/unmounted before attempting to mount/unmount 2 anni fa

README.md

remnt

Mount remote directories over sshfs.

It takes all the names of directories located in ${HOME}/Remotes and attempts to mount them over ssh. Make sure you have aliases for all these set up in your ssh config file. Remnt does not pass any options to ssh.

Usage: remnt [m|u|l] ["targets"]
    m Mount all volumes indicated in ~/Remotes/
    u Unmount all volumes indicated in ~/Remotes/
    l List all targets and whether they're mounted or not.

    If a list of (quoted and space delimited) targets is
    supplied after u or m only those will mounted/unmounted."

Example

$ cat ~/.ssh/config

Host cousin
	Hostname cousin.someexampledomain.tld
	User yourcousin
	IdentityFile ~/.ssh/id_rsa

$ ls ~/Remote/*
~/Remotes/cousin:

$ remnt l
UNMOUNTED: cousin

$ remnt m

$ remnt l
MOUNTED:   cousin