summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-10-31 17:26:00 +0100
committerJulian T <julian@jtle.dk>2020-10-31 17:26:00 +0100
commit846d211f38b60b76591754ae83569697eefd4445 (patch)
tree155dd1e2bce0b222e09de53e54042aed6faaf024 /zsh/.zshrc
parente7bb5aa7486221c7f900dfac2f03451cb66a0ca8 (diff)
Better zsh vim alias settings and zsh history
Diffstat (limited to 'zsh/.zshrc')
-rw-r--r--zsh/.zshrc17
1 files changed, 12 insertions, 5 deletions
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/"