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
  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"]
+ 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
## Code Before:
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
## Instruction:
Add aptitude and apt + bower
## Code After:
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
