-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
57 lines (43 loc) · 1.19 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
# Editor config
(( ${+PAGER} )) || export PAGER='less'
(( ${+EDITOR} )) || export EDITOR='vim'
export PSQL_EDITOR='vim -c"setf sql"'
# enable colored output from ls, etc. on FreeBSD-based systems
export CLICOLOR=1
# Set command history settings
setopt appendhistory extendedglob histignoredups nonomatch prompt_subst interactivecomments noclobber
HISTFILE=~/.zhistory
HISTSIZE=4096
SAVEHIST=4096
############################
########## ZPlug ###########
############################
# zplug init
source ~/.zplug/init.zsh
# zplug plugins
zplug "rupa/z", \
from:github, \
as:command, \
use:"z.sh", \
rename-to:z
zplug mafredri/zsh-async, from:github
zplug sindresorhus/pure, use:pure.zsh, from:github, as:theme
zplug "zsh-users/zsh-syntax-highlighting", defer:2
# 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
zplug load
# Aliases
source ~/.aliases.sh
# remove duplicates in $PATH
typeset -aU path
# makes color constants available
autoload -U colors; colors
# completion
autoload -U compinit; compinit
# Source asdf
. /usr/local/opt/asdf/asdf.sh