diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-23 23:40:35 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-23 23:40:35 +0530 |
| commit | 66adff9257c0bdcf5fea357cf4afd9c5804ac9d9 (patch) | |
| tree | 92b9941ed1b211594446c69e1c1a4d57240f1a0e /config/zsh/zshrc | |
| parent | c69a505caac996f78b7b010dcc563672cb5a6019 (diff) | |
| download | nixos-config-66adff9257c0bdcf5fea357cf4afd9c5804ac9d9.tar.gz nixos-config-66adff9257c0bdcf5fea357cf4afd9c5804ac9d9.zip | |
Moves zsh config to config and symlinked
Diffstat (limited to 'config/zsh/zshrc')
| -rw-r--r-- | config/zsh/zshrc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config/zsh/zshrc b/config/zsh/zshrc new file mode 100644 index 0000000..c3fde13 --- /dev/null +++ b/config/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/.config/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; + |
