-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
47 lines (39 loc) · 1.43 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export LC_COLLATE="C"
export PROMPT_EOL_MARK=""
export TERM="xterm-256color"
export PATH=$PATH:~/.local/bin
# Check if zplug is installed
if [[ ! -d ~/.zgenom ]]; then
git clone https://github.com/jandamm/zgenom.git ~/.zgenom
fi
source ~/.zgenom/zgenom.zsh
# if the init scipt doesn't exist
if ! zgenom saved; then
echo "Creating a zgen save"
zgenom oh-my-zsh
zgenom ohmyzsh --completion plugins/git
zgenom oh-my-zsh plugins/sudo
zgenom oh-my-zsh plugins/docker
zgenom oh-my-zsh plugins/fzf
zgenom oh-my-zsh plugins/fasd
zgenom load lukechilds/zsh-better-npm-completion
zgenom load zsh-users/zsh-syntax-highlighting
zgenom load zsh-users/zsh-completions
if [ -x "$(command -v pacman)" ]; then
zgenom load ~/dotfiles/arch
fi
# Load theme file
zgenom load romkatv/powerlevel10k powerlevel10k
zgenom save
fi
cdpath=(~ /var/www)
source ~/dotfiles/init.zsh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
(( ! ${+functions[p10k]} )) || p10k finalize