From 2058b189e671e68845043a5b494ee6dc244b1d2e Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 26 Dec 2019 19:11:57 -0700 Subject: [PATCH] develop:zsh: speed up and reformat zshrc a bit --- profiles/develop/zsh/default.nix | 21 +++++++++++++++++++++ profiles/develop/zsh/zshrc | 20 -------------------- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/profiles/develop/zsh/default.nix b/profiles/develop/zsh/default.nix index 06e3f96..7e6c016 100644 --- a/profiles/develop/zsh/default.nix +++ b/profiles/develop/zsh/default.nix @@ -66,6 +66,27 @@ in programs.zsh = { enable = true; + enableGlobalCompInit = false; + + histSize = 10000; + + setOptions = [ + "extendedglob" + "incappendhistory" + "sharehistory" + "histignoredups" + "histfcntllock" + "histreduceblanks" + "histignorespace" + "histallowclobber" + "autocd" + "cdablevars" + "nomultios" + "pushdignoredups" + "autocontinue" + "promptsubst" + ]; + promptInit = '' source ${pkgs.purs}/share/zsh/plugins/purs/purs.zsh ''; diff --git a/profiles/develop/zsh/zshrc b/profiles/develop/zsh/zshrc index 2c311fa..31b916c 100644 --- a/profiles/develop/zsh/zshrc +++ b/profiles/develop/zsh/zshrc @@ -8,26 +8,6 @@ hash -d \ github=~git/github.com \ gitlab=~git/gitlab.com -# Zsh options -setopt extendedglob -setopt incappendhistory -setopt sharehistory -setopt histignoredups -setopt histreduceblanks -setopt histignorespace -setopt histallowclobber -setopt autocd -setopt cdablevars -setopt nomultios -setopt pushdignoredups -setopt autocontinue -setopt promptsubst - -# Environment -HISTSIZE=10000 -SAVEHIST=10000 -HISTFILE=$HOME/.history -DIRSTACKSIZE=5 # key binds bindkey -v '^?' backward-delete-char