This repository has been archived by the owner on Apr 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.zshrc
63 lines (50 loc) · 1.55 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
source ~/.zsh_aliases
# History settings
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
# Key bindings
bindkey -e
# Completion settings
autoload -Uz compinit
compinit
eval "$(zoxide init zsh)"
# Starship prompt
eval "$(starship init zsh)"
# Zinit plugin manager
ZINIT_HOME="${ZINIT_HOME:-${XDG_DATA_HOME:-${HOME}/.local/share}/zinit}"
if [[ ! -f ${ZINIT_HOME}/zinit.git/zinit.zsh ]]; then
command mkdir -p "${ZINIT_HOME}" && command chmod g-rwX "${ZINIT_HOME}"
command git clone https://github.com/zdharma-continuum/zinit.git "${ZINIT_HOME}/zinit.git"
fi
source "${ZINIT_HOME}/zinit.git/zinit.zsh"
# Zinit plugins
zinit ice wait'0' blockf atpull'zinit creinstall -q .' silent
zinit light zsh-users/zsh-completions
zinit ice wait'0' lucid silent
zinit light-mode for \
hlissner/zsh-autopair \
zdharma-continuum/fast-syntax-highlighting \
MichaelAquilina/zsh-you-should-use \
zsh-users/zsh-autosuggestions \
Aloxaf/fzf-tab
zinit ice wait'0' lucid silent
zinit light zsh-users/zsh-history-substring-search
zinit ice wait'0' lucid silent
zinit light zdharma-continuum/history-search-multi-word
# FZF
zinit ice wait'0' from"gh-r" as"command" silent
zinit light junegunn/fzf-bin
# EXA
zinit ice wait'0' lucid from"gh-r" as"program" mv"bin/exa* -> exa" silent
zinit light ogham/exa
# BAT
zinit ice wait'0' lucid from"gh-r" as"program" mv"*/bat -> bat" atload"export BAT_THEME='Nord'" silent
zinit light sharkdp/bat
# vim:ft=zsh
if pgrep -x "Hyprland" > /dev/null; then
pfetch
else
echo "Hyprland is not running."
fi
export PATH=$PATH:/home/diana/.cargo/bin