From 677eaae9e61b43d64e3c735a8402ed08dadcd098 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 23 Apr 2019 05:50:23 +1200 Subject: [PATCH] refactor(zsh): move history options into plugin --- zsh/.config/oh-my-zsh/custom/zsh-history.zsh | 5 +++++ zsh/.zshrc | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 zsh/.config/oh-my-zsh/custom/zsh-history.zsh diff --git a/zsh/.config/oh-my-zsh/custom/zsh-history.zsh b/zsh/.config/oh-my-zsh/custom/zsh-history.zsh new file mode 100644 index 0000000..896d2e0 --- /dev/null +++ b/zsh/.config/oh-my-zsh/custom/zsh-history.zsh @@ -0,0 +1,5 @@ +# increase zsh history +export HISTSIZE=1000000000 +export SAVEHIST=$HISTSIZE +setopt EXTENDED_HISTORY + diff --git a/zsh/.zshrc b/zsh/.zshrc index 1a58fcc..6dbc77a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -33,10 +33,6 @@ autoload -U compinit && compinit # source omz source $ZSH/oh-my-zsh.sh -# increase zsh history -export HISTSIZE=1000000000 -export SAVEHIST=$HISTSIZE -setopt EXTENDED_HISTORY # reduce linux syscalls export TZ=:/etc/localtime