-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.sources
68 lines (59 loc) · 1.53 KB
/
.sources
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
# shellcheck disable=SC2148
# Source Prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Source Starship
if command -v starship &>/dev/null; then
eval "$(starship init zsh)"
fi
# Brew completions
if command -v brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
# Set up ngrok completions
if command -v ngrok &>/dev/null; then
eval "$(ngrok completion)"
fi
# Source Prezto modules depending on current environment
if [[ -s "${HOME}/.zmodules" ]]; then
source "${HOME}/.zmodules"
fi
if command -v brew &>/dev/null; then
# Avoid issues with `gpg` as installed via Homebrew.
# https://stackoverflow.com/a/42265848/96656
GPG_TTY=$(tty)
export GPG_TTY
fi
# Source 1Password plugins
if [[ -f "$HOME/.config/op/plugins.sh" ]]; then
source "$HOME/.config/op/plugins.sh"
fi
# asdf version manager
if [[ -s "$HOME/.asdf/asdf.sh" ]]; then
. "$HOME/.asdf/asdf.sh"
fi
# Custom
if [[ -s "${HOME}/.exports" ]]; then
source "${HOME}/.exports"
fi
if [[ -s "${HOME}/.exports_private" ]]; then
source "${HOME}/.exports_private"
fi
if [[ -s "${HOME}/.aliases" ]]; then
source "${HOME}/.aliases"
fi
if [[ -s "${HOME}/.aliases_private" ]]; then
source "${HOME}/.aliases_private"
fi
if [[ -s "${HOME}/.functions" ]]; then
source "${HOME}/.functions"
fi
if [[ -s "${HOME}/.functions_private" ]]; then
source "${HOME}/.functions_private"
fi
if [[ -s "${HOME}/.sources_private" ]]; then
source "${HOME}/.sources_private"
fi