2026-01-17 17:44:41 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
2026-01-17 21:17:14 +00:00
|
|
|
################################################################################
|
|
|
|
|
# CONFIG initialisation
|
|
|
|
|
|
|
|
|
|
source $zsh_dir/config.zsh
|
|
|
|
|
|
|
|
|
|
|
2026-01-17 17:44:41 +00:00
|
|
|
################################################################################
|
|
|
|
|
# ALIAS initialisation
|
|
|
|
|
|
|
|
|
|
source $zsh_dir/alias.zsh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
# PROMPT initialisation
|
|
|
|
|
|
|
|
|
|
source $zsh_dir/prompt.zsh
|
2026-01-17 21:17:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
# COMMAND initialisation
|
|
|
|
|
|
|
|
|
|
source $zsh_dir/commands.zsh
|
2026-02-21 18:19:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
|
# KEYBIND initialisation
|
|
|
|
|
|
|
|
|
|
source $zsh_dir/keybind.zsh
|