Timeline for How can I remove duplicates in my .bash_history, preserving order?
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 30, 2024 at 19:02 | history | edited | user430002 | CC BY-SA 4.0 | Improve var names in the Python script |
| Apr 30, 2024 at 18:56 | history | edited | user430002 | CC BY-SA 4.0 | Improve var names in the Python script |
| Apr 30, 2024 at 18:51 | history | edited | user430002 | CC BY-SA 4.0 | Improve var names in the Python script |
| Apr 30, 2024 at 6:17 | comment | added | user430002 | @Kusalananda I added an explanation of the Python script to the answer. | |
| Apr 30, 2024 at 6:16 | history | edited | user430002 | CC BY-SA 4.0 | add explanation for the script |
| Apr 30, 2024 at 5:43 | comment | added | user430002 | @Kusalananda yes, the sorted((l, c) for c, l in history.items()) does this (l is the line number, c is the command). | |
| Apr 29, 2024 at 6:35 | comment | added | Kusalananda♦ | My Python-foo is not as good as yours, so can you tell me whether this preserves the order of the not deleted history entries? This was one of the main points in the question. | |
| Apr 29, 2024 at 6:18 | history | edited | user430002 | CC BY-SA 4.0 | Clarify |
| Jan 15, 2024 at 13:57 | history | edited | user430002 | CC BY-SA 4.0 | clarify |
| Jan 15, 2024 at 12:28 | history | edited | user430002 | CC BY-SA 4.0 | clarify |
| Jan 15, 2024 at 12:01 | history | edited | user430002 | CC BY-SA 4.0 | lowercase variable |
| Jan 15, 2024 at 11:55 | history | answered | user430002 | CC BY-SA 4.0 |