Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

switched to HIST_IGNORE_ALL_DUPS

  • Loading branch information...
commit cde69e066549efb8b909561cde7d4cc6bb9745e0 1 parent c285aeb
@eeemsi authored
Showing with 1 addition and 12 deletions.
  1. +0 −11 zsh/functions
  2. +1 −1  zsh/history
View
11 zsh/functions
@@ -130,14 +130,3 @@ update_git () {
done
}
-# from time to time some stats are interesting especially if new aliases are introduced
-zsh_stats() {
- history | awk '{print $2}' | sort | uniq -c | sort -rn | head
- echo ' ================'
- sed -n 's/^\([a-z]*\) .*/\1/p' $HISTFILE |
- sort |
- uniq -c |
- sort -n -k1 |
- tail -25 |
- tac
-}
View
2  zsh/history
@@ -4,6 +4,6 @@ SAVEHIST=5000
HISTFILE=${HOME}/.zsh_history
# Dont save duplicates, add incrementally lines to $HISTFILE as soon as they're entered and remove blanks from each added command
-setopt HIST_IGNORE_DUPS
+setopt HIST_IGNORE_ALL_DUPS
setopt INC_APPEND_HISTORY
setopt HIST_REDUCE_BLANKS

0 comments on commit cde69e0

Please sign in to comment.
Something went wrong with that request. Please try again.