Skip to content

Instantly share code, notes, and snippets.

@LevitatingBusinessMan
Created February 16, 2025 15:06
Show Gist options
  • Save LevitatingBusinessMan/15c29f6c87caf1e19713391369422ccf to your computer and use it in GitHub Desktop.
Save LevitatingBusinessMan/15c29f6c87caf1e19713391369422ccf to your computer and use it in GitHub Desktop.
Open torrent directory via transmission-remote-gtk
#!/usr/bin/env fish
if test (count $argv) -lt 1
echo "Usage: tsopen.fish %{full-path}"
echo "See also https://github.com/transmission-remote-gtk/transmission-remote-gtk/wiki/Local-Command-usage"
else
for fullpath in $argv
set dir (mktemp -d)
sshfs archpi.rlyeh:$fullpath $dir; or notify-send tsopen.fish "failed to ssh"; and exit
open $dir
end
end
# this script could be improved by mounting the torrent by their hashid
# this way an existing mount can be reused
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment