Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nautilus context menu sync with ODrive
#!/bin/bash
# Put this file in ~/.local/share/nautilus/scripts/
# Remember to `chmod +x` it
IFS='
'
for file in ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS}
do
if [[ $file == *.cloud ]] || [[ $file == *.cloudf ]]
then
odrive sync "$file"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment