Active Topics

 


Reply
Thread Tools
Posts: 306 | Thanked: 106 times | Joined on Feb 2010
#1
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
__________________
------------------------------------------------------------------
Voice choppy on sip calls
Please vote for bug number 10388
 
Posts: 135 | Thanked: 158 times | Joined on Sep 2009 @ Germany
#2
No, it save only the last 5 Commands.

Use Bash3

http://talk.maemo.org/showthread.php?t=61074
 
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#3
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?
 
Posts: 1,378 | Thanked: 1,604 times | Joined on Jun 2010 @ Göteborg, Sweden
#4
To record history you should close the shell by typing "exit" rather than by closing the window.
 
Posts: 135 | Thanked: 158 times | Joined on Sep 2009 @ Germany
#5
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
 
Posts: 135 | Thanked: 158 times | Joined on Sep 2009 @ Germany
#6
Originally Posted by handaxe View Post
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 .......
 

The Following 2 Users Say Thank You to superjunior For This Useful Post:
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#7
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.)
 
Posts: 38 | Thanked: 33 times | Joined on Aug 2010 @ Bangalore, India
#8
Originally Posted by superjunior View Post
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'
 

The Following 2 Users Say Thank You to kitwalker For This Useful Post:
Posts: 46 | Thanked: 160 times | Joined on Jun 2010 @ Germany, Berlin
#9
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

Last edited by Ulle; 2010-09-08 at 09:03. Reason: root PATH should be different
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:23.