history
Bash history command colorized on levenshtein distance of last 10 commands
The history command is measured against the previous command in the list and it it’s the same or almost the same it’s printed in grey. Duplicates are also grey.
###.bash_profile
# Avoid duplicates
export HISTCONTROL=ignoredups:erasedups
# When the shell exits, append to the history file instead of overwriting it
shopt -s histappend
# After each command, append to the history file and reread it
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r"
#alias to script
alias hist='python ~/workspace/history/history.py'
screenshot
history
Metadata
Release files for historybash 21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| historybash-21.tar.gz | 2.8 kB | Details |
Release files / historybash-21.tar.gz
| Download URL | historybash-21.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58b0ddd1bd3d41b71c8078d274ed3dc3f505e2f0baf77470550351b20c19b6a2
|
|
BLAKE2b-256 checksum How to use checksums |
cd7f6fc5ad9e179153345f9df618cf5d6cfdc1c4651fb920c15730966416d6e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |