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
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

Add aptitude and apt + bower
Add aptitude and apt + bower