diff options
author | Julian T <julian@jtle.dk> | 2020-10-31 17:26:00 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-10-31 17:26:00 +0100 |
commit | 846d211f38b60b76591754ae83569697eefd4445 (patch) | |
tree | 155dd1e2bce0b222e09de53e54042aed6faaf024 /zsh | |
parent | e7bb5aa7486221c7f900dfac2f03451cb66a0ca8 (diff) |
Better zsh vim alias settings and zsh history
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -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/" |