33 lines
746 B
Bash
33 lines
746 B
Bash
|
|
zshrc=~/.zshrc
|
||
|
|
if [ -z $zshrc ]; then
|
||
|
|
echo "Err: Cannot find dotfile directory."
|
||
|
|
exit -1
|
||
|
|
fi
|
||
|
|
|
||
|
|
dotfile_dir=$(readlink -f $(dirname $(readlink -f $zshrc))/..)
|
||
|
|
zsh_dir=$dotfile_dir/zsh
|
||
|
|
|
||
|
|
|
||
|
|
################################################################################
|
||
|
|
# ZPLUG initialisation and plugin list
|
||
|
|
|
||
|
|
source $zsh_dir/plugin.zsh
|
||
|
|
|
||
|
|
|
||
|
|
################################################################################
|
||
|
|
# ENVIRONMENT initialisation
|
||
|
|
|
||
|
|
source $zsh_dir/environment.zsh
|
||
|
|
|
||
|
|
|
||
|
|
################################################################################
|
||
|
|
# ALIAS initialisation
|
||
|
|
|
||
|
|
source $zsh_dir/alias.zsh
|
||
|
|
|
||
|
|
|
||
|
|
################################################################################
|
||
|
|
# PROMPT initialisation
|
||
|
|
|
||
|
|
source $zsh_dir/prompt.zsh
|