bash history without duplicates
Bug #415217 reported by
dino99
This bug report is a duplicate of:
Bug #189881: bash HISTCONTROL=erasedups should erase duplicates from history file before saving.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
New
|
Wishlist
|
Unassigned |
Bug Description
By default, when a command is used in a console, that one is saved in bash history.
The problem is that each new command is saved again even if that command exist in history. bash history become fatty & it's a pain to recall a previous command using arrows.
The solution is to modify the .bashrc file by adding:
export HISTCONTROL=
to prevent duplicates
Please, make that change as default.
affects: | linux (Ubuntu) → bash (Ubuntu) |
Changed in bash (Ubuntu): | |
importance: | Undecided → Wishlist |
To post a comment you must log in.
Architecture: i386 dules: nvidia ture: i386 ature: Ubuntu 2.6.31-6.25-generic
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: bash 3.2-5ubuntu2
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=fr_FR.UTF-8
ProcVersionSign
Uname: Linux 2.6.31-6-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare