feat: add -l (list) and -u (unmount) flags
Update PKGBUILD version / update-pkgver (push) Successful in 5s

A second sshfsc <alias> call only printed "Already mounted"; tearing
down a mount required ls + fusermount by hand. -l lists active mounts
verified via mountinfo.Mounted, -u <Host> unmounts and removes the
empty mountpoint dir. Flags are mutually exclusive.
This commit is contained in:
2026-05-04 09:25:55 +02:00
parent 3f3c631057
commit 8edddc5a28
4 changed files with 234 additions and 8 deletions
+5 -1
View File
@@ -27,7 +27,9 @@ install -Dm755 sshfsc /usr/local/bin/sshfsc
# Usage
```
sshfsc <Host>
sshfsc <Host> # mount
sshfsc -u <Host> # unmount
sshfsc -l # list active mounts
```
## Arguments
@@ -37,6 +39,8 @@ sshfsc <Host>
| `-e` | open mountpoint in your editor |
| `-v` | verbose: print resolved ssh_config fields (HostName, User, Port, IdentityFile) |
| `-r`, `--remote-dir <path>` | remote directory to mount (default: remote home) |
| `-l` | list active mounts under `$XDG_RUNTIME_DIR/sshfs/` and exit |
| `-u` | unmount the given `<Host>` and exit (mutually exclusive with `-l`) |
By default only the resolved mount path is printed. Use `-v` for the full
ssh_config dump.