Bash history command colorized on levenshtein distance of last 10 commands
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
historybash-35.tar.gz
(2.8 kB
view details)
File details
Details for the file historybash-35.tar.gz
.
File metadata
- Download URL: historybash-35.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1694297fec826c13ce6301f75f03ae0aac16beedac4379bd16961077e1817ec4 |
|
MD5 | cac02306202a1ccda79bf4226830a459 |
|
BLAKE2b-256 | 5dcdd8e570664d47f50ac9bf9b1a87a9f48b1fe763a2b35d0f0f1cefe4524781 |