-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
49 lines (39 loc) · 900 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
48
49
#!/bin/zsh
# Docs: http://zsh.sourceforge.net/Doc/Release/Options.html
setopt APPEND_HISTORY
setopt AUTOCD
setopt CORRECT
setopt EXTENDED_GLOB
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt INC_APPEND_HISTORY
setopt interactive_comments
setopt MAILWARN
setopt PROMPT_SUBST
setopt SHARE_HISTORY
SAVEHIST=5000
HISTSIZE=2000
# Load standard shell profile
if [[ -e "${HOME}/.profile" ]]
then
source "${HOME}/.profile"
fi
# Zgen
# https://github.com/tarjoilija/zgen
source "${HOME}/.zgen/zgen.zsh"
if ! zgen saved; then
zgen load lukechilds/zsh-nvm
zgen load zsh-users/zsh-syntax-highlighting
zgen load unixorn/autoupdate-zgen
zgen save
fi
# Homebrew
# https://brew.sh/
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
# Prompt
PS1='%F{240}%2~%f %(?.%F{240}.%F{red})%#%f '