25 lines
785 B
Bash
25 lines
785 B
Bash
#!/bin/bash
|
|
|
|
current_dir=$(dirname "$0")
|
|
|
|
if [ "$1" = "zsh" ]; then
|
|
if [ $# -gt 1 ]; then
|
|
for i in "${@:2}"; do
|
|
if [ "$i" = "install" ]; then
|
|
echo "Installing Oh My Zsh..."
|
|
zsh "$current_dir/zsh/install_ohmyzsh.sh"
|
|
elif [ "$i" = "config" ]; then
|
|
echo "Config Oh My Zsh..."
|
|
zsh "$current_dir/zsh/config_ohmyzsh.sh"
|
|
elif [ "$i" = "p10k" ]; then
|
|
echo "config powerlevel10k..."
|
|
zsh "$current_dir/zsh/config_p10k.sh"
|
|
elif [ "$i" = "check" ]; then
|
|
echo "chcking uninstalled software..."
|
|
zsh "$current_dir/zsh/check.sh"
|
|
fi
|
|
done
|
|
fi
|
|
echo "Run \"exec zsh\" to apply changes."
|
|
fi
|