forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 49
/
.zprofile
37 lines (27 loc) · 1.19 KB
/
.zprofile
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
# ~/.zprofile: executed by zsh
# you will find all other settings in "~/.redpill/"
############# INCLUDE ####################################
# * ~/.extra can be used for other settings you don’t want to commit.
for file in ~/.{config_dotfiles,path,load,exports,colors,icons,aliases,functions,extra}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
unset file
############# EXTRA ####################################
if [ -d $HOME/.redpill ]; then
# define the path from "red-pill"
export ZSH=$HOME/.redpill
if [[ -z "$CONFIG_ZSH_THEME" ]]; then
CONFIG_ZSH_THEME="random"
fi
# Set name of the theme to load.
# Look in ~/.redpill/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that you enter the matrix.
ZSH_THEME="$CONFIG_ZSH_THEME"
# Which plugins would you like to load? (plugins can be found in ~/.redpill/plugins/*)
# Custom plugins may be added to ~/.redpill/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=($(echo $CONFIG_ZSH_PLUGINS | sed 's/(//g' | sed 's/)//g'))
source $HOME/.redpill/redpill-init-zsh.sh
fi