-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdot_zshrc.tmpl
More file actions
38 lines (27 loc) · 865 Bytes
/
Copy pathdot_zshrc.tmpl
File metadata and controls
38 lines (27 loc) · 865 Bytes
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
#!/bin/zsh
ZSH_DISABLE_COMPFIX=true
# Load Dotfile defaults
. "$HOME/.dotfiles/defaults.zsh"
# all of our zsh files
typeset -U config_files
config_files=($DOTFILES/*/*.zsh)
# TODO: not this, something more explicit
# load everything but the path and completion files
for file in ${${config_files:#*/path.zsh}:#*/completion.zsh}; do
source "$file"
done
# load plugins
source "$DOTFILES/oh-my-zsh/plugins.zsh"
# Load Oh-My-Zsh (this runs compinit)
source $HOME/.oh-my-zsh/oh-my-zsh.sh
# Load our completions file (after compinit is available)
source "$DOTFILES/completions.zsh"
# Load our alias file.
source "$DOTFILES/aliases.zsh"
# use .localrc for SUPER SECRET CRAP that you don't
# want in your public, versioned repo.
# shellcheck disable=SC1090
[ -f ~/.localrc ] && . ~/.localrc
# Use Starship Prompt
eval "$(starship init zsh)"
unset config_files