Linux 向上键盘历史命令重复问题

经常使用向上键盘切换历史命令,如果出现重复执行多次的历史命令,那么就需要按很多次向上键盘才能跳过当前重复的命令,很是麻烦,解决办法:
~/.bashrc中添加以下配置:

HISTCONTROL=$HISTCONTROL:ignoredups

标签: 无

发表评论:

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif