-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zshrc
More file actions
49 lines (38 loc) · 1.09 KB
/
.zshrc
File metadata and controls
49 lines (38 loc) · 1.09 KB
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
# Created by newuser for 5.5.1
source ~/.zplug/init.zsh
zplug "modules/directory", from:prezto
zplug "modules/utility", from:prezto
zplug "modules/completion", from:prezto
zplug "modules/pacman", from:prezto
zplug "modules/syntax-highlighting", from:prezto
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
zstyle ':prezto:*:*' color 'yes'
SPACESHIP_VI_MODE_COLOR=green
SPACESHIP_EXIT_CODE_SHOW=true
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load
# Enable vi-mode
spaceship_vi_mode_enable
# Neovim
if (( $+commands[nvim] )); then
export EDITOR=nvim
fi
# Source fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Source autojump
[ -f /etc/profile.d/autojump.zsh ] && source /etc/profile.d/autojump.zsh
# Store config on git
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
#
# Load local configs
#
if [[ -f ~/.zshrc.local ]]; then
source ~/.zshrc.local
fi