Skip to content

Instantly share code, notes, and snippets.

@uiur
Created April 23, 2015 09:26
Show Gist options
  • Save uiur/519328b951ebfc333f15 to your computer and use it in GitHub Desktop.
Save uiur/519328b951ebfc333f15 to your computer and use it in GitHub Desktop.
Reload chrome extensions using chrome-cli
#!/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