Created
June 14, 2014 22:22
-
-
Save nikcorg/2a24f6ec63a58ce3e41f to your computer and use it in GitHub Desktop.
Kill all Chrome tabs (except apps)
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
tabkill () { | |
ps ux | \ | |
grep '[C]hrome Helper --type=renderer' | \ | |
grep -vi "Canary" | \ | |
grep -v extension-process | \ | |
tr -s ' ' | \ | |
cut -d ' ' -f2 | \ | |
xargs kill | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're like me, you have way too many tabs and windows open in your browser. Source or copy-paste this small function to your
.bashrc
and saytabkill
in your console to free up some memory, while still not losing your tabs.