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 = { programs.zsh = {
enable = true; enable = true;
enableGlobalCompInit = false;
histSize = 10000;
setOptions = [
"extendedglob"
"incappendhistory"
"sharehistory"
"histignoredups"
"histfcntllock"
"histreduceblanks"
"histignorespace"
"histallowclobber"
"autocd"
"cdablevars"
"nomultios"
"pushdignoredups"
"autocontinue"
"promptsubst"
];
promptInit = '' promptInit = ''
source ${pkgs.purs}/share/zsh/plugins/purs/purs.zsh source ${pkgs.purs}/share/zsh/plugins/purs/purs.zsh
''; '';

View File

@ -8,26 +8,6 @@ hash -d \
github=~git/github.com \ github=~git/github.com \
gitlab=~git/gitlab.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 # key binds
bindkey -v '^?' backward-delete-char bindkey -v '^?' backward-delete-char