On 03/30/2015 01:02 PM, Yamaban wrote:
I'm using urxvt(d), small, fast, mostly compatible with xterm. Normal workflow uses ca 12 terms. Duplicate commands on different terms are a usual happening.
In my .xinitrc I'm using a now 20 year old scriptlet, that copies the ~/.bash_history to a temp file, and appends it to a bigger saved history file (similar to dnh), then the temp file gets pumped into a perlscript that: 1: reads files of the .bash_history (with timestamps) format, 2: builds a hash with the command as key, and the timestamp as value, 3: for a existing key the value gets the bigger timestamp, 4: then a array is formed, for each key/value pair: '#${timestamp}\n${command}\n', 5: this array gets sorted by a self defined sorting sub (timestamp, then command) 6: and the whole, now uniq history gets written into ~/.bash_history
This works for me, as I reboot the machine about once a month, and during that time I use suspend-to-disk for the nightly pause.
A added 2-4 seconds on X11 login after reboot is acceptable for me.
HISTSIZE=50000 HISTFILESIZE=500000 HISTCONTROL=ignorespace:erasedups HISTTIMEFORMAT="%F %T "
Yamaban, Can you add your info to the bug. Werner is looking at it, but is suggesting a bug upstream. I agree, but I would like to capture your information in the report before sending it up. https://bugzilla.suse.com/show_bug.cgi?id=924818 -- David C. Rankin, J.D.,P.E. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org