command stack in buffer

Michael Welle mwe012008 at gmx.net
Tue Jan 5 11:10:33 UTC 2010


Hi,

vijay shanker <vijay.shad at gmail.com> writes:

> @ andrew
> Your suggestion does not seems to be working.
> my configuration in ~/.bashrc file
>
> # don't put duplicate lines in the history. See bash(1) for more options
> # don't overwrite GNU Midnight Commander's setting of `ignorespace'.
> export HISTCONTROL=$HISTCONTROL${HISTCONTROL+,}ignoredups
> # ... or force ignoredups and ignorespace
> #export HISTCONTROL=ignoreboth
the solution is for bash. Do you use bash or a different shell?  If you
use bash the problem is that the list elements have to be separated by
colons. Open a shell and invoke 'echo $HISCONTROL'. What is the result?

Type 'export HISTCONTROL=ignoredups' in your shell, then invoke a few
'ls' and then 'history'. Does the list show only one ls or several? If
that does what you want exchange the line in ~/.bashrc with 

export HISTCONTROL=$HISTCONTROL${HISTCONTROL+:}ignoredups

Regards
hmw

-- 
biff4emacsen - A biff-like tool for (X)Emacs
http://www.c0t0d0s0.de/biff4emacsen/biff4emacsen.html
Flood - Your friendly network packet generator
http://www.c0t0d0s0.de/flood/flood.html




More information about the ubuntu-users mailing list