-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
executable file
·45 lines (35 loc) · 1.02 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
autoload -Uz compinit && compinit
unsetopt beep
# Remove RPROMPT spacing
ZLE_RPROMPT_INDENT=0
# History
HISTFILE=$HOME/.zsh_history
HISTSIZE=1000
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_dups
setopt hist_save_no_dups
setopt hist_find_no_dups
# Zstyle
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' menu select
zstyle -e ':completion:*:default' list-colors 'reply=("${PREFIX:+=(#bi)($PREFIX:t)(?)*==02=01}:${(s.:.)LS_COLORS}")'
# Run all zsh files
for file in $HOME/dotfiles/.config/zsh/*.zsh; do
source $(realpath $file)
done
# completion using arrow keys (based on history)
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
eval "$(starship init zsh)"
eval "$(zoxide init zsh)"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Set default colours
export LS_COLORS="$(vivid generate catppuccin-mocha)"
# PATH
PATH="/usr/local/opt/grep/libexec/gnubin:$PATH"
# Source zshrc
alias restart-zsh='source ~/.zshrc'