Type-add for ack
Modify shell history file handling