-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
47 lines (42 loc) · 1.4 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
SHELL_DIR=$HOME/.config/shell
ZSH_THEME="spaceship"
# Settings
setopt autocd # Auto cd when executing directory
setopt auto_pushd # Automatically use pushd
setopt pushd_ignore_dups # Pushd will ignore duplicates
setopt pushdminus # Allow numbers
setopt hist_expire_dups_first # Delete duplicates when HISTFILE is full
setopt hist_ignore_dups # Ignore duplicates
setopt histignorespace # Don't write to history when prepended by space
setopt hist_verify # Show with history expansion before executing
setopt inc_append_history # Add in order of execution
setopt auto_menu # Show completion menu on tab
setopt complete_in_word # Completion from both ends
setopt always_to_end # Move cursor to end on completion
# Source
source $SHELL_DIR/variables.sh
source $SHELL_DIR/functions.sh
source $SHELL_DIR/aliases.sh
source $ZSH/oh-my-zsh.sh
plugins=(
git
battery
command-not-found
extract
git-auto-fetch
jsontools
man
ripgrep
rsync
screen
sudo
vi-mode
zsh-autosuggestions
)
# Completion
zmodload -i zsh/complist
WORDCHARS=''
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*:*:*:*:*' menu select
zstyle ':completion::complete:*' cache-path $ZSH_CACHE_DIR
zstyle ':completion::complete:*' use-cache 1