Fix syntax in zshrc
0bb3ca8b7026272765bce63f320c790a7503e41a
1 parent
0bb29ce0
.zshrc
+18 -9
| 72 | 72 | HISTFILE=~/.zsh_history |
|
| 73 | 73 | HISTSIZE=65536 |
|
| 74 | 74 | SAVEHIST=65536 |
|
| 75 | 75 | REPORTTIME=10 |
|
| 76 | 76 | ||
| 77 | - | setopt BANG_HIST # Treat the '!' character specially during expansion. |
|
| 78 | - | setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format. |
|
| 79 | - | setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits. |
|
| 80 | - | setopt HIST_EXPIRE_DUPS_FIRST # Expire duplicate entries first when trimming history. |
|
| 81 | - | setopt HIST_IGNORE_DUPS # Don't record an entry that was just recorded again. |
|
| 82 | - | setopt HIST_IGNORE_ALL_DUPS # Delete old recorded entry if new entry is a duplicate. |
|
| 83 | - | setopt HIST_FIND_NO_DUPS # Do not display a line previously found. |
|
| 84 | - | setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history file. |
|
| 85 | - | setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry. |
|
| 77 | + | # Treat the '!' character specially during expansion. |
|
| 78 | + | setopt BANG_HIST |
|
| 79 | + | # Write the history file in the ":start:elapsed;command" format. |
|
| 80 | + | setopt EXTENDED_HISTORY |
|
| 81 | + | # Write to the history file immediately, not when the shell exits. |
|
| 82 | + | setopt INC_APPEND_HISTORY |
|
| 83 | + | # Expire duplicate entries first when trimming history. |
|
| 84 | + | setopt HIST_EXPIRE_DUPS_FIRST |
|
| 85 | + | # Don't record an entry that was just recorded again. |
|
| 86 | + | setopt HIST_IGNORE_DUPS |
|
| 87 | + | # Delete old recorded entry if new entry is a duplicate. |
|
| 88 | + | setopt HIST_IGNORE_ALL_DUPS |
|
| 89 | + | # Do not display a line previously found. |
|
| 90 | + | setopt HIST_FIND_NO_DUPS |
|
| 91 | + | # Don't write duplicate entries in the history file. |
|
| 92 | + | setopt HIST_SAVE_NO_DUPS |
|
| 93 | + | # Remove superfluous blanks before recording entry. |
|
| 94 | + | setopt HIST_REDUCE_BLANKS |
|
| 86 | 95 | ||
| 87 | 96 | autoload up-line-or-beginning-search |
|
| 88 | 97 | autoload down-line-or-beginning-search |
|
| 89 | 98 | ||
| 90 | 99 | zle -N up-line-or-beginning-search |