-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.zsh
32 lines (23 loc) · 904 Bytes
/
init.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
eval "$(/opt/homebrew/bin/brew shellenv)"
eval "$(starship init zsh)"
eval "$(hub alias -s)"
eval "$(mise activate zsh)"
root="$(cd $(dirname "${(%):-%N}"); pwd)"
FPATH=$HOMEBREW_PREFIX/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
for directory in $HOME/src/*; do
export CDPATH="$CDPATH:$directory"
done
export PATH="$HOME/bin:$HOME/.bin:$root/bin:$PATH"
export EDITOR="code -w -n"
# Set `mise/asdf install` flags for Erlang and Postgres
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
export POSTGRES_EXTRA_CONFIGURE_OPTIONS="--with-uuid=e2fs"
# Enables Elixir/Erlang shell history
export ERL_AFLAGS="-kernel shell_history enabled"
# Disables brew auto updates when doing `brew install`
export HOMEBREW_NO_AUTO_UPDATE=1
test -f ~/.secrets.sh && source ~/.secrets.sh
test -f $root/aliases.sh && source $root/aliases.sh
test -f ~/.fzf.zsh && source ~/.fzf.zsh