develop:zsh: speed up and reformat zshrc a bit

This commit is contained in:
Timothy DeHerrera 2019-12-26 19:11:57 -07:00
parent 667fad8f1e
commit 2058b189e6
No known key found for this signature in database
GPG key ID: 8985725DB5B0C122
2 changed files with 21 additions and 20 deletions

View file

@ -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
'';

View file

@ -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