# vim: set filetype=sh nospell: export PAGER='ov' export VISUAL='nvim' export EDITOR='nvim' export MANPAGER="sh -c 'col -bx | bat -l man -p'" export MANROFFOPT="-c" export BAT_PAGER="ov -FX" # Set language. export LANG=${LANG:-en_US.UTF-8} # Reduce key delay export KEYTIMEOUT=${KEYTIMEOUT:-1} # Ensure path arrays do not contain duplicates. typeset -gU cdpath fpath mailpath path ### History settings ### setopt BANG_HIST # Treat the '!' character specially during expansion. setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format. setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history. setopt HIST_FIND_NO_DUPS # Do not display a previously found event. setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate. setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again. setopt HIST_IGNORE_SPACE # Do not record an event starting with a space. setopt HIST_REDUCE_BLANKS # Remove extra blanks from commands added to the history list. setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file. setopt HIST_VERIFY # Do not execute immediately upon history expansion. setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits. setopt NO_HIST_BEEP # Don't beep when accessing non-existent history. setopt NO_SHARE_HISTORY # Don't share history between all sessions. setopt HIST_REDUCE_BLANKS # Remove superfluous blanks from each command line being added to the history. export HIST_STAMPS="yyyy-mm-dd" export HISTFILE=~/.zsh_history export HISTORY_IGNORE="(ls|cd|pwd|exit|fg|hstr)*" export SAVEHIST=1000 # increase history file size (default is 500) export HISTSIZE=1000 # increase history size (default is 500) export HSTR_CONFIG=prompt-bottom,hicolor,raw-history-view export HSTR_PROMPT=">" # for `zsh-users/zsh-history-substring-search` plugin HISTORY_SUBSTRING_SEARCH_PREFIXED=1 # Match against the start of each history entry. # for `Sam-programs/zsh-calc` plugin CALC_CMD="qalc -t -c -f <(echo \$BUFFER)" # zsh-vi-mode stuff ZVM_VI_HIGHLIGHT_FOREGROUND=black ZVM_VI_HIGHLIGHT_BACKGROUND=green ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BLOCK ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BEAM ZVM_VISUAL_MODE_CURSOR=$ZVM_CURSOR_BLOCK ZVM_VISUAL_LINE_MODE_CURSOR=$ZVM_CURSOR_BLOCK ZVM_OPPEND_MODE_CURSOR=$ZVM_CURSOR_BLINKING_UNDERLINE