diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-20 16:49:47 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-20 16:49:47 +0530 |
| commit | 568f7903ca7464f99df659b8488bd731e4f2c4f0 (patch) | |
| tree | dfa7f9d077eb85ec840c8bfcaa04c1d64cc5aa29 /external/zsh/zshrc | |
| parent | c580a9ec2a1a43a682117eca41c3867e8771117a (diff) | |
| download | nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.tar.gz nixos-config-568f7903ca7464f99df659b8488bd731e4f2c4f0.zip | |
Adds zsh config
Diffstat (limited to 'external/zsh/zshrc')
| -rw-r--r-- | external/zsh/zshrc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/external/zsh/zshrc b/external/zsh/zshrc new file mode 100644 index 0000000..114e68d --- /dev/null +++ b/external/zsh/zshrc @@ -0,0 +1,23 @@ +autoload -U colors && colors; +setopt auto_cd; +setopt inc_append_history; + +export SAVEHIST=10000 +# export HISTSIZE=50000 +# export HISTFILE=~/.config/zsh_history + +setopt extended_history # record timestamp of command in HISTFILE +setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE +setopt hist_ignore_dups # ignore duplicated commands history list +setopt hist_ignore_space # ignore commands that start with space +setopt hist_verify # show command with history expansion to user before running it +setopt share_history # share command history data + +export ZSH_CUSTOM_CONF_FILES="$HOME/nixos/external/zsh"; + +for f in $ZSH_CUSTOM_CONF_FILES/*.zsh; do source $f; done; +source $ZSH_CUSTOM_CONF_FILES/aliases.zsh; + +# Plugins +# source ~/.config/zshplugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh; + |
