maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Increase history in shell? (https://talk.maemo.org/showthread.php?t=61903)

rajil.s 2010-09-08 06:02

Increase history in shell?
 
Hi all,

Is there a way to increase the history in the shell? Using Up/Down keys give only limited number of previous commands.

Thanks

superjunior 2010-09-08 06:15

Re: Increase history in shell?
 
No, it save only the last 5 Commands.

Use Bash3

http://talk.maemo.org/showthread.php?t=61074

erniadeldesktop 2010-09-08 06:38

Re: Increase history in shell?
 
I've just tried this method, and thus is cool to have red root account doesn't solve the issue: as soon as you close the terminal the history is deleted. any suggestion?
ps: also ls --color=auto doesn't work, maybe there's something to install?

handaxe 2010-09-08 07:11

Re: Increase history in shell?
 
To record history you should close the shell by typing "exit" rather than by closing the window.

superjunior 2010-09-08 07:17

Re: Increase history in shell?
 
Commands are save in ".bash_history"

Create a blank File ( with texteditor ) and save in /home/user/.bash_history


IMHO "--color=auto" doesn't work with Bash3

Bash3 is optimized for maemo and it is compiled without "--color=auto"



Really sorry for my English

superjunior 2010-09-08 07:20

Re: Increase history in shell?
 
Quote:

Originally Posted by handaxe (Post 810348)
To record history you should close the shell by typing "exit" rather than by closing the window.

Bash3 save all Commands on close.
Never mind you close the shell. Type "exit" or push the "close-Button" or .......

erniadeldesktop 2010-09-08 08:04

Re: Increase history in shell?
 
solved, was a simple permission issue: running a chmod 777 .bash_history solved it all. For the ls-colors some time ago I saw a thread, but was with a .deb file. I would compile it and put on repos (if I know how.) :)

kitwalker 2010-09-08 08:36

Re: Increase history in shell?
 
Quote:

Originally Posted by superjunior (Post 810350)
Commands are save in ".bash_history"

Create a blank File ( with texteditor ) and save in /home/user/.bash_history


IMHO "--color=auto" doesn't work with Bash3

Bash3 is optimized for maemo and it is compiled without "--color=auto"

The color not coming is not related to bash3 but to ls itself. The ls command is mapped to busybox. Install gnu-coreutils and you can then run ls as gls.
Also you can create an alias like alias ls='gls --color=auto'

Ulle 2010-09-08 09:00

Re: Increase history in shell?
 
http://talk.maemo.org/showthread.php...965#post748965

I recommend to add

PATH=$PATH:/usr/bin/:/usr/local/bin:/bin

to those .bash_profile files

Ulle

P.S.:

for /root/.bash_profile add second additional line:

PATH=$PATH:/usr/sbin/:/usr/local/sbin:/sbin


All times are GMT. The time now is 02:48.

vBulletin® Version 3.8.8