Skip to content

Instantly share code, notes, and snippets.

@gibatronic
Created October 7, 2018 10:19
Show Gist options
  • Save gibatronic/8a08477b5583f9688705bebdc9c703fa to your computer and use it in GitHub Desktop.
Save gibatronic/8a08477b5583f9688705bebdc9c703fa to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
#
# Reset Quick Look and all of its cache
#
# Usage:
# ./delete-quicklook-cache
main() {
qlmanage -r cache > /dev/null
local exit_code=$?
if [ "$exit_code" = '0' ]; then
echo -e "\033[32m✓\033[0m Done"
return 0
fi
return $exit_code
}
main "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment