-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
94 lines (71 loc) · 2.13 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
export LSCOLORS=Gxfxcxdxbxegedabagacad
#Completions
fpath=(/usr/local/share/zsh-completions $fpath)
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
fi
autoload -Uz compinit && compinit
# Don't blow up if we think we have a glob and can't match
setopt +o nomatch
setopt autocd
set bell-style visible
export EDITOR=vim
#Setup path
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
if [ -f ~/.zshrc.local ] ; then
# shellcheck source=/dev/null
source ~/.zshrc.local
fi
if [ -d ~/.dotfiles/environment_imports ] ; then
for file in ~/.dotfiles/environment_imports/* ; do
[[ -e $file ]] || break
# shellcheck source=/dev/null
source "$file"
done
fi
### Bashhub.com Installation
if [ -f ~/.bashhub/bashhub.sh ]; then
# shellcheck source=/dev/null
source ~/.bashhub/bashhub.sh
fi
#include any local aliases
if [ -f ~/.aliases.local ] ; then
# shellcheck source=/dev/null
source ~/.aliases.local
fi
if [ -f /usr/local/etc/profile.d/z.sh ]; then
source /usr/local/etc/profile.d/z.sh
fi
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
## Modify path AFTER local settings
#add anything I have in dotfiles
PATH="$HOME/.dotfiles/bin:$PATH"
#prioritive asdf
if type asdf &>/dev/null; then
PATH="/Users/ssmith/.asdf/shims:$PATH"
fi
if type rbenv &>/dev/null; then
PATH="$(rbenv root)/shims:$PATH"
fi
if type pyenv &>/dev/null; then
PATH="$(pyenv root)/shims:$PATH"
fi
if type direnv &>/dev/null; then
eval "$(direnv hook zsh)"
fi
# put ~/bin first on PATH
if [ -d "$HOME/bin" ]; then
PATH="$HOME/bin:$PATH"
fi
if [ -f $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
fi
#### FIG ENV VARIABLES ####
# Please make sure this block is at the end of this file.
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh
#### END FIG ENV VARIABLES ####
#
if [ -f $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh