my_config/add_zshrc
2023-04-30 13:37:26 +02:00

14 行
384 B
Bash
実行ファイル

#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.zshrc || -e ~/.zshrc.d) ]]; then
echo "A zsh configuration already exists (~/.zshrc or ~/.zshrc.d)"
echo "Remove this configuration and start the script again"
else
echo "Creating base links"
ln -vs $SCRIPTPATH/.zshrc ~/.zshrc
ln -vs $SCRIPTPATH/.zshrc.d ~/.zshrc.d
fi