aboutsummaryrefslogtreecommitdiff
path: root/env
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-08-21 16:23:11 +0300
committereug-vs <eugene@eug-vs.xyz>2021-08-21 16:24:14 +0300
commit5df5cf1fc1969f7d065456acdc051babfb7e1e29 (patch)
tree58933c71194dee00fd4ce9b45d66aca1eb33683a /env
parent9e0b29e85016c0655d490ba4a35e186e6ee38bb1 (diff)
downloaddotfiles-5df5cf1fc1969f7d065456acdc051babfb7e1e29.tar.gz
feat(zsh): improve history and add aliases
Diffstat (limited to 'env')
-rw-r--r--env/.zshrc13
1 files changed, 10 insertions, 3 deletions
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