Compatible Support Forums: bash

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

bash

#1 User is offline   kobedf 

  • newbie
  • Group: Members
  • Posts: 32
  • Joined: 13-October 04

Posted 06 December 2004 - 01:01 AM

i'm sorry if i'm iritating you with all those questions ....but......i need help laugh
thanks egorgry for your help

one more
when using a terminal ...suppose i run a program (say ./P ) 10 times...than when i try to get through the list of the recently used commands with the UP and DOWN arrows i find ./P placed there 10 times.
I'll try to change this myself , but i need to know what file i should modify ...or how can i access the shell buffers.
thanks
0

#2 User is offline   egorgry 

  • enthusiast
  • Group: Members
  • Posts: 315
  • Joined: 30-August 03

Posted 06 December 2004 - 01:48 AM

teh commands are kept in your .bash_history file.

you can addd this line to your .bashrc file to ignore dups

# don't put duplicate lines in the history.
export HISTCONTROL=ignoredups


0

#3 User is offline   Cardinal 

  • member
  • Group: Members
  • Posts: 193
  • Joined: 25-May 00

Posted 14 December 2004 - 01:23 PM

Another way is just edit your bash profile and set the buffer to 1000 lines for example, then tell it to load your profile by default smile
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users