tags:

views:

30

answers:

2

hi

i have a .bash_favourites file which containes a list of my favourite commands.
I would like this be searchable via the normal bash history. ???

thanks

Ian

+1  A: 
cat ~/.bash_favourites >> ~/.bash_history
history -r

If you want to make this permanent, you can probably just add these lines to ~/.bash_profile.

Adam Luchjenbroers
+1  A: 

If you want to replace the regular history with your favorites: Do chmod u-w on .bash_history and edit it as you like. Bash should read it as usual but not add new commands.

ypnos