Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: Jáder on August 04, 2007, 01:56:37 PM

Title: enhancing Shell History
Post by: Jáder on August 04, 2007, 01:56:37 PM
I'd like to share a VERY USEFUL TIP about linux I just discovered on a brazilian linux site.

Expand the "memory of your .bash_history to 2000 lines adding this on your .bashrc:

Code: [Select]
export HISTFILESIZE=2000
export HISTSIZE=2000

And now enhance the search of commands on your new bigger history.
Create a .inputrc with :

Code: [Select]
"\e[A": history-search-backward
"\e[B": history-search-forward


Next logon you'll be able to search command by start wo write them and use up/down arrows.

I'd love to see those enhancement on next release of SME :)
Title: enhancing Shell History
Post by: haymann on August 13, 2007, 09:15:31 PM
Very cool. Thanks for the tips!
Ryan
Title: Re: enhancing Shell History
Post by: cactus on August 13, 2007, 09:34:45 PM
Quote from: "jader"
I'd love to see those enhancement on next release of SME :)
To make the developers aware of your wishes, please add a new feature request in the bugtracker.
Title: Re: enhancing Shell History
Post by: TrevorB on August 14, 2007, 09:59:13 AM
I'd love to see those enhancement on next release of SME :)
You could add an item in the wiki...!!!!  :-)

Trevor B
Title: Re: enhancing Shell History
Post by: Jáder on August 14, 2007, 05:30:49 PM
Done!
http://wiki.contribs.org/ShellEnhancement

Title: Re: enhancing Shell History
Post by: Normando on August 15, 2007, 09:27:27 AM
really really good  :shock:
Only one issue is when I want to deleted the entire line hiting DEL key, the bash add ~ char