diff options
author | eug-vs <eugene@eug-vs.xyz> | 2021-08-21 16:23:11 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2021-08-21 16:24:14 +0300 |
commit | 5df5cf1fc1969f7d065456acdc051babfb7e1e29 (patch) | |
tree | 58933c71194dee00fd4ce9b45d66aca1eb33683a /env | |
parent | 9e0b29e85016c0655d490ba4a35e186e6ee38bb1 (diff) | |
download | dotfiles-5df5cf1fc1969f7d065456acdc051babfb7e1e29.tar.gz |
feat(zsh): improve history and add aliases
Diffstat (limited to 'env')
-rw-r--r-- | env/.zshrc | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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 |