-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
59 lines (44 loc) · 1.21 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# source zsh plugins
local plugin_dir=$HOME/.zsh
for plugin ($plugin_dir/**/*.plugin.zsh) do;
source $plugin
done
export SVDIR=$HOME/service
export PATH="$PATH:$HOME/.local/bin"
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
export PAGER='less'
export MANPAGER="$PAGER"
export EDITOR='nvim'
export VISUAL="$EDITOR"
### aliases ###
alias ezs='eza -aF --group-directories-first'
alias ezl='eza -al --group-directories-first'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias ip='ip -color=auto'
alias less='less -R'
alias h='history'
fpath=(~/.zsh/prompts/ $fpath)
autoload -Uz compinit && compinit
autoload -Uz promptinit && promptinit
prompt ruthen1um
zstyle ':completion:*' menu select
zstyle ':completion:*' file-list all
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
ZSH_AUTOSUGGEST_STRATEGY=('history' 'completion')
source <(fzf --zsh)
bindkey '^ ' autosuggest-execute
bindkey '^F' autosuggest-accept
# push dirs to stack
setopt auto_pushd
setopt pushd_ignore_dups
setopt auto_cd
setopt auto_menu
# history options
setopt inc_append_history
setopt hist_ignore_all_dups
setopt hist_no_store
setopt hist_reduce_blanks
setopt extended_glob