Files
dotfiles/zsh/init.zsh

59 lines
1.2 KiB
Bash
Raw Normal View History

2026-01-17 17:44:41 +00:00
zshrc=~/.zshrc
zshenv=~/.zshenv
2026-01-17 17:44:41 +00:00
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
################################################################################
# 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
################################################################################
# COMMAND initialisation
source $zsh_dir/commands.zsh
################################################################################
# KEYBIND initialisation
source $zsh_dir/keybind.zsh
# SYSTEM-SPECIFIC initialisation
if [ -z $zshenv ]; then
source $zshenv
fi