rmount.sh (300B)
1 #!/bin/bash 2 3 SELECTION=$(rclone listremotes | fzf) 4 5 # TODO: This should probalby be mounted at /mnt/{name} 6 7 if [[ -z "$SELECTION" ]]; then 8 echo "No selection made." 9 else 10 umount $HOME/mount || true 11 rclone mount $SELECTION/ $HOME/mount --daemon --vfs-cache-mode full --dir-cache-time=1s 12 fi