diff options
Diffstat (limited to 'zsh/zshrc')
-rw-r--r-- | zsh/zshrc | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -5,10 +5,22 @@ autoload -U colors && colors PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " # TODO: change $ to # when root # Load aliasrc and keybindrc -source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/aliasrc" -source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/keybindrc" +source "$XDG_CONFIG_HOME/zsh/aliasrc" +source "$XDG_CONFIG_HOME/zsh/keybindrc" # lf icons -source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/lficons" +source "$XDG_CONFIG_HOME/zsh/lficons" + +# History settings +HISTFILE="$XDG_DATA_HOME/zsh-history" +HISTSIZE=200 # Max lines of history loaded into memory +SAVEHIST=10000000 # Max lines of history saved to the histfile +setopt INC_APPEND_HISTORY # Write to the histfile after each command is ran, not after zsh exits +setopt SHARE_HISTORY # Share history between zsh sessions +setopt HIST_REDUCE_BLANKS +setopt HIST_IGNORE_DUPS # Successive duplicate commands ignored +setopt HIST_IGNORE_SPACE # Commands with leading space ignored +# Letting this write to the histfile because it seems like it might actually reduce overall writes (while using more data ofc) +#unsetopt EXTENDED_HISTORY # Save only the command, not any superfluous info # Change cursor shape for different vi modes (Cred: LARBS) function zle-keymap-select () { |