-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc.zsh
36 lines (25 loc) · 987 Bytes
/
zshrc.zsh
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
# Set up the prompt
autoload -Uz promptinit
promptinit
if [[ $OSTYPE == 'darwin'* ]]; then
# Use modern completion system
export FPATH="$(brew --prefix)/share/zsh/site-functions:$FPATH"
#use brew provided utils
COREUTILSPATH="$(brew --prefix coreutils)/libexec/gnubin"
PATH=$COREUTILSPATH:$PATH
PATH=/usr/local/sbin:/usr/local/bin:$PATH
#add openssl to pkg config
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl/lib/pkgconfig
fi
#get dot files directory
[[ -z $ZSH_CUSTOM ]] && ZSH_CUSTOM=$(dirname $(readlink "${HOME}/.zshrc"))
#bootstrap antigen plugin manager
export ANTIGEN="${HOME}/antigen.zsh"
source $ZSH_CUSTOM/antigen.zsh
#bootstrap zsh custom utils and functions
source $ZSH_CUSTOM/bootstrap.zsh
#add ~/bin to path
export PATH=$PATH:$HOME/bin
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="${HOME}/.sdkman"
[[ -s "${HOME}/.sdkman/bin/sdkman-init.sh" ]] && source "${HOME}/.sdkman/bin/sdkman-init.sh"