zsh: add config files

This commit is contained in:
2026-01-17 17:44:41 +00:00
parent ae7fecfad1
commit 33b5c9ddac
5 changed files with 70 additions and 0 deletions

32
zsh/init.zsh Normal file
View File

@@ -0,0 +1,32 @@
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