forked from fuog/team-dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc-template.zsh
29 lines (25 loc) · 1 KB
/
zshrc-template.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
#!/bin/zsh
# == MANAGED ZSHRC == by github.com/fuog/dotfiles ======= #
# Script sourcing check
test -z "$PS1" \
&& echo -e "This script \033[00;31mshould be sourced\033[0m not executed" && exit 1
# Dotfiles configuration
export DOTFILES_REPO=""
export DOTFILES_ADDITIONALS=""
export DOTFILES_P10K=""
export DOTFILES_VIMRC=""
export DOTFILES_SCRIPTS=""
# execute some of the scripts
("${DOTFILES_REPO}/link-dotfiles.zsh" &) &> /dev/null
# Source zsh files
source "${DOTFILES_REPO}/main-rc.zsh" \
|| echo "ERROR: sourcing main-rc!"
source "${DOTFILES_REPO}/additionals/${DOTFILES_ADDITIONALS}" \
|| echo "Error: sourcing additionals!"
source "${DOTFILES_REPO}/manage-dotfiles.zsh" \
|| echo "Error: sourcing manage-dotfiles!"
source "${DOTFILES_REPO}/script-loader.zsh" \
|| echo "Error: sourcing additional scripts!"
# loading scripts as part of the dotfiles is not implemented for now
# The code below is respected but no managed by fuog/dotfiles
# == END OF MANAGED ZSHRC =============================== #