Created
April 23, 2015 09:26
-
-
Save uiur/519328b951ebfc333f15 to your computer and use it in GitHub Desktop.
Reload chrome extensions using chrome-cli
This file contains hidden or 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
#!/bin/bash -e | |
id=$(chrome-cli list links | grep "chrome://extensions/" | awk '{print $1}' | sed -E "s/^\[([0-9]+)\]$/\1/g") | |
if [[ -n $id ]] ; then | |
chrome-cli reload -t "$id" | |
else | |
chrome-cli open "chrome://extensions" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment