my_config/add_powerline

13 lines
354 B
Plaintext
Raw Normal View History

2023-04-30 13:37:26 +02:00
#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.config/powerline) ]]; then
echo "A powerline configuration already exists (~/.config/powerline)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.config/powerline ~/.config/powerline
fi