import os

history_file = os.path.expanduser("~")+"/.bash_history"
f = open(history_file,"r")

keywords = ["pip", "tar", "brew", "apt-get", "aptitude", "apt", "install", "luarocks", "easy_install", "gem", "npm", "bower"]

for line in f:
	for item in keywords:
		if item in line:
			print(line[:-1])
			break

import os

history_file = os.path.expanduser("~")+"/.bash_history"
f = open(history_file,"r")

keywords = ["pip", "tar", "brew", "apt-get", "install", "luarocks", "easy_install", "gem", "npm"]

for line in f:
	for item in keywords:
		if item in line:
			print(line[:-1])
			break
--- 
+++ 
@@ -3,7 +3,7 @@
 history_file = os.path.expanduser("~")+"/.bash_history"
 f = open(history_file,"r")
 
-keywords = ["pip", "tar", "brew", "apt-get", "install", "luarocks", "easy_install", "gem", "npm"]
+keywords = ["pip", "tar", "brew", "apt-get", "aptitude", "apt", "install", "luarocks", "easy_install", "gem", "npm", "bower"]
 
 for line in f:
 	for item in keywords:
Add aptitude and apt + bower