From 846d211f38b60b76591754ae83569697eefd4445 Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 31 Oct 2020 17:26:00 +0100 Subject: Better zsh vim alias settings and zsh history --- zsh/.zshrc | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index 7ae13be..316401a 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -13,9 +13,14 @@ compinit # # End of lines added by compinstall # Lines configured by zsh-newuser-install -HISTFILE=~/.zsh_history -HISTSIZE=10000 -SAVEHIST=1000000 +export HISTFILE=~/.zsh_history +export HISTFILESIZE=1000000000 +export HISTSIZE=1000000 +export SAVEHIST=1000000 +export HISTTIMEFORMAT="%F %T " +setopt INC_APPEND_HISTORY +setopt EXTENDED_HISTORY +setopt HIST_FIND_NO_DUPS unsetopt beep # End of lines configured by zsh-newuser-install @@ -78,17 +83,19 @@ bindkey "^[[1;5D" backward-word # # Env # -export EDITOR=nvim +# export EDITOR=nvim +export EDITOR=vim export SUDO_EDITOR=$EDITOR # export LANG=en_US.UTF-8 export TERM="xterm-256color" export PATH=$PATH:$HOME/Scripts/bin export PATH=$PATH:$HOME/go/bin +export WORDCHARS='*?.[]~=&;!#$%^(){}<>' # # Alias # -alias vim="nvim" +alias vim="$EDITOR" alias ls='ls --color=auto' alias etckeep="/usr/bin/git --git-dir=/etc/.git --work-tree=/etc/" -- cgit v1.2.3