-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc.symlink
40 lines (28 loc) · 1.21 KB
/
zshrc.symlink
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
###############################################################################
# .zshrc
#
# This file should ideally be kept small, focusing on linking
# Loaded by interactive shells, both login and non-login
# Loads after .zshenv, .zprofile
# Loads before .zlogin
###############################################################################
### ENVIRONMENT VARIABLES
export DOTFILES=$HOME/dotfiles
### SOURCE ALL .ZSH FILES WITHIN DOTFILES PROJECT
setopt nullglob
### INCLUDE BASH-COMPATIBLE SOURCES
for config_file ($DOTFILES/source/system/*) source $config_file
for config_file ($DOTFILES/private/source/system/*) source $config_file
### INCLUDE ZSH-ONLY SOURCES
for config_file ($DOTFILES/source/zsh/*) source $config_file
for config_file ($DOTFILES/private/source/zsh/*) source $config_file
unsetopt nullglob
### SOURCE LOCAL FILES SYMLINKED TO HOME DIRECTORY
if [[ -e "$HOME/.paths.local" ]]; then
source "$HOME/.paths.local"
fi
### SOURCE OH-MY-ZSH FILES IF IT EXISTS
if [ -e $ZSH/oh-my-zsh.sh ] && [ -e $DOTFILES/zsh/oh-my-zsh.zsh ]; then
source $DOTFILES/zsh/oh-my-zsh.zsh
fi
test -e ${HOME}/.iterm2_shell_integration.zsh && source ${HOME}/.iterm2_shell_integration.zsh