SilverWav's Journal

The best is yet to come…

Posts Tagged ‘bash

Note: .bashrc

leave a comment »

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=erasedups:ignorespace
export HISTSIZE=1000
export HISTIGNORE="history *:cd *:df *:exit:fg:bg:file *:ll:ls:mc:top:clear"
export HISTFILESIZE=20000
Advertisements

Written by SilverWav

April 17, 2010 at 1:48 pm

Posted in Notes

Tagged with , , ,

Note: Remove Duplicates from .bash_history

leave a comment »

awk '!x[$0]++' .bash_history > .bash.tmp && mv -f .bash.tmp .bash_history

Bug #189881

Written by SilverWav

April 17, 2010 at 12:49 pm

Posted in Notes

Tagged with , , , ,