Skip to content

Instantly share code, notes, and snippets.

@brandones
Created November 9, 2018 18:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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