Skip to main content

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

history

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

historybash-21.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file historybash-21.tar.gz.

File metadata

  • Download URL: historybash-21.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for historybash-21.tar.gz
Algorithm Hash digest
SHA256 58b0ddd1bd3d41b71c8078d274ed3dc3f505e2f0baf77470550351b20c19b6a2
MD5 a8bc9db3ab65f56ce5bf997d9e453318
BLAKE2b-256 cd7f6fc5ad9e179153345f9df618cf5d6cfdc1c4651fb920c15730966416d6e3

See more details on using hashes here.

Release history Release notifications | RSS feed

82

1 file

79

1 file

76

1 file

75

1 file

74

1 file

73

1 file

72

1 file

71

1 file

70

1 file

69

1 file

68

1 file

66

1 file

65

1 file

64

1 file

63

1 file

62

1 file

61

1 file

60

1 file

59

1 file

58

1 file

57

1 file

56

1 file

55

1 file

54

1 file

53

1 file

52

1 file

51

1 file

50

1 file

49

1 file

48

1 file

47

1 file

46

1 file

45

1 file

44

1 file

43

1 file

42

1 file

41

1 file

40

1 file

39

1 file

38

1 file

37

1 file

35

1 file

34

1 file

33

1 file

32

1 file

31

1 file

30

1 file

29

1 file

28

1 file

27

1 file

26

1 file

25

1 file

24

1 file

22

1 file

This release

21 This release

1 file

20

1 file

19

1 file

18

1 file

17

1 file

16

1 file

15

1 file

14

1 file

13

1 file

12

1 file

11

1 file

10

1 file

9

1 file

8

1 file

7

1 file

6

1 file

4

1 file

3

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page