From 0949414e76c75da02efb07dbe747f3387a24d2c0 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Tue, 10 Aug 2021 00:51:38 -0500 Subject: changed name of home dirs and other small tweaks --- zsh/zshrc | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'zsh/zshrc') diff --git a/zsh/zshrc b/zsh/zshrc index 370d6f5..67fc838 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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 () { -- cgit v1.2.3