add some bash functions and +erasedups for history