Created
October 7, 2018 10:19
-
-
Save gibatronic/8a08477b5583f9688705bebdc9c703fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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