From 5df5cf1fc1969f7d065456acdc051babfb7e1e29 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Aug 2021 16:23:11 +0300 Subject: feat(zsh): improve history and add aliases --- env/.zshrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'env/.zshrc') diff --git a/env/.zshrc b/env/.zshrc index 6f2ea41..72d49ee 100644 --- a/env/.zshrc +++ b/env/.zshrc @@ -3,9 +3,11 @@ PS1="%B%{$fg[white]%}[%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[green]%}%M %{$fg[yello bindkey -e # History in cache directory: -HISTSIZE=10000 -SAVEHIST=10000 -HISTFILE=~/.cache/zsh/history +export HISTSIZE=10000 +export SAVEHIST= +export HISTFILE=~/.cache/zsh/history +setopt HIST_IGNORE_ALL_DUPS +setopt INC_APPEND_HISTORY # Completion autoload -U compinit @@ -25,6 +27,11 @@ bindkey '^e' edit-command-line # Aliases alias vi=nvim alias vim=nvim +alias vf=vifm +alias g=git +alias t=task +alias tw=timew +alias s="sudo systemctl" # Env export LESS=R # Option to less so that git log/diff hide output after exit -- cgit v1.2.3