-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
51 lines (41 loc) · 1.26 KB
/
dot_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
# ----------------------------
# @davinjason's config files
# ----------------------------
# zinit
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p "$(dirname $ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
source "${ZINIT_HOME}/zinit.zsh"
source ~/.config/zsh/functions.zsh
source ~/.config/zsh/aliases.zsh
source ~/.config/zsh/exports.zsh
source ~/.config/zsh/keybind.zsh
source ~/.config/zsh/plugins.zsh
source ~/.local/share/zinit/plugins/lincheney---fzf-tab-completion/zsh/fzf-zsh-completion.sh
HISTFILE=~/.histfile
HISTSIZE=110000
SAVEHIST=100000
HISTDUP=erase
autoload -Uz compinit && compinit
# Opts
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
setopt inc_append_history
setopt nobeep
setopt nocheckjobs
clear
fastfetch
eval "$(oh-my-posh init zsh --config "~/.config/oh-my-posh/theme.toml")"
eval "$(fzf --zsh)"
eval "$(zoxide init --cmd cd zsh)"
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*:descriptions' format '[%d]'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no