-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
64 lines (49 loc) · 1.46 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
60
61
62
63
64
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=${HISTSIZE}
export PATH="$PATH:/home/sentience/sources/projects/bin"
setopt autocd extendedglob
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
# Keybinds
bindkey -v
bindkey -a 'm' history-search-backward
bindkey -a 'n' history-search-forward
# Pywal
(cat ~/.cache/wal/sequences &)
source ~/.cache/wal/colors-tty.sh
# Aliases
alias cat='bat'
alias ls='lsd'
alias grep='grep --color=auto'
export FZF_DEFAULT_OPTS="--color=16"
zstyle ':fzf-tab:*' fzf-flags $(echo $FZF_DEFAULT_OPTS)
zstyle :compinstall filename '/home/sentience/.zshrc'
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
autoload -Uz compinit
compinit
# Zinit
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
# Download zinit if not installled
if [ ! -d "$ZINIT_HOME" ]; then
mkdir "$(dirname ZINIT_HOME)"
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
fi
source "${ZINIT_HOME}/zinit.zsh"
# PLugins
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
# Snippets
zinit snippet OMZP::sudo
zinit snippet OMZP::command-not-found
autoload -U compinit && compinit
zinit cdreplay -q
# oh-my-posh
eval "$(oh-my-posh init zsh --config /home/sentience/.config/oh-my-posh/config.toml)"
# fzf
eval "$(fzf --zsh --color=16)"