Skip to content

Commit

Permalink
Remove unnecessary HSTR configuration from .zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
hironow committed Dec 4, 2024
1 parent eaa4a58 commit 7537efb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -196,14 +196,3 @@ setopt HIST_SAVE_NO_DUPS
setopt HIST_REDUCE_BLANKS
setopt INC_APPEND_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST

# HSTR configuration - add this to ~/.zshrc
alias hh=hstr # hh to be alias for hstr
setopt histignorespace # skip cmds w/ leading space from history
export HSTR_CONFIG=hicolor # get more colors
bindkey -s "\C-r" "\C-a hstr -- \C-j" # bind hstr to Ctrl-r (for Vi mode check doc)
export HSTR_TIOCSTI=y
export HISTCONTROL=ignorespace # leading space commands do not go to history

# sync history
export PROMPT_COMMAND="history -a; history -n; ${PROMPT_COMMAND}"

0 comments on commit 7537efb

Please sign in to comment.