dotfiles

My configuration files
git clone git://git.finwo.net/misc/dotfiles
Log | Files | Refs

commit cbe17f2e8cd87fb247b76d82616256a721c42ec2
parent 930daa131f3846b9340e64009c7b529a52118d88
Author: finwo <finwo@pm.me>
Date:   Wed,  8 May 2019 14:09:25 +0200

Keep zshrc as simple as possible

Diffstat:
Dzsh/home/.config/zsh/rc/000-history | 10----------
Mzsh/home/.zshrc | 18+++++++++++++++---
2 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/zsh/home/.config/zsh/rc/000-history b/zsh/home/.config/zsh/rc/000-history @@ -1,10 +0,0 @@ -# Generic history -HISTFILE=~/.histfile -HISTSIZE=10000000 -SAVEHIST=10000000 -setopt HIST_IGNORE_DUPS -bindkey -v - -# History search -[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward -[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward diff --git a/zsh/home/.zshrc b/zsh/home/.zshrc @@ -1,3 +1,15 @@ -for file in $(ls "${HOME}/.config/zsh/rc/"); do - source "${HOME}/.config/zsh/rc/${file}" -done + +# History +HISTFILE=~/.histfile +HISTSIZE=1000000000 +SAVEHIST=1000000000 +setopt HIST_IGNORE_DUPS +bindkey -v + +# History search +[[ -n "${key[PageUp]}" ]] && bindkey "${key[PageUp]}" history-beginning-search-backward +[[ -n "${key[PageDown]}" ]] && bindkey "${key[PageDown]}" history-beginning-search-forward + +# Aliases +command -v "nvim" &>/dev/null && alias vim="nvim" +command -v "vim" &>/dev/null && alias vi="vim"