-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
47 lines (36 loc) · 815 Bytes
/
.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
# Oh My Zsh
# ---------
export ZSH="${HOME}/.oh-my-zsh"
# Set Zsh theme
ZSH_THEME="powerlevel10k/powerlevel10k"
# Enable case insensitivity
HYPHEN_INSENSITIVE="true"
# Enable auto correction
ENABLE_CORRECTION="true"
# Enable completion dots
COMPLETION_WAITING_DOTS="true"
# Enable automatic updates
zstyle ':omz:update' mode auto
# Set update frequency
zstyle ':omz:update' frequency 7
# Enable custom plugins in $ZSH_CUSTOM/plugins/
plugins=(
git
colorize
zsh-autosuggestions
zsh-syntax-highlighting
)
# Load Oh My Zsh
source $ZSH/oh-my-zsh.sh
# Dotfiles
# --------
function load_dotfile() {
DOTFILES="${HOME}/.config/dotfiles"
if [[ -f "${DOTFILES}/${1}" ]]; then
source "${DOTFILES}/${1}"
fi
}
# Load dotfiles
load_dotfile ".p10k.zsh"
load_dotfile ".aliases"
load_dotfile ".exports"