Skip to content

Instantly share code, notes, and snippets.

@brandones
Created November 9, 2018 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandones/b2037f5d12338329dad26798bd6ec9ac to your computer and use it in GitHub Desktop.
Save brandones/b2037f5d12338329dad26798bd6ec9ac to your computer and use it in GitHub Desktop.
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