X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=install.sh;h=cf290b464a463f0e1b462ff16c170bccad801504;hb=c782d82badde9f8f59745ab57b5bbf4687838098;hp=923ab8694213eedcbf80878e0c1c09cb6edfcb57;hpb=ab4280c3ec2f2e99c01bc52775a9a3135bca8ee1;p=ax-zsh.git diff --git a/install.sh b/install.sh index 923ab86..cf290b4 100755 --- a/install.sh +++ b/install.sh @@ -38,12 +38,10 @@ export AXZSH S=$(dirname "$0") -if [ "$S" = "$AXZSH" -o "$PWD" = "$AXZSH" ]; then +if [ "$S" = "$AXZSH" ] || [ "$PWD" = "$AXZSH" ] || [ -L "$AXZSH" ]; then ax_msg 1 "Initializing \"$AXZSH\":" else ax_msg 1 "Install AX-ZSH into \"$AXZSH\":" - - [ -L "$AXZSH" ] && rm -f "$AXZSH" mkdir -p "$AXZSH" || abort ax_msg - "Copying binaries and scripts ..." @@ -64,9 +62,18 @@ else cp -pR "$S/$p" "$AXZSH/$p" || abort done done + + ax_msg - "Copying themes ..." + mkdir -p "$AXZSH/themes" || abort + for p in "$S/themes/"*; do + echo "$p -> $AXZSH/$p" + rm -fr "${AXZSH:?}/$p" || abort + cp -pR "$S/$p" "$AXZSH/$p" || abort + done fi mkdir -p "$AXZSH/custom_plugins" || abort +mkdir -p "$AXZSH/custom_themes" || abort ax_msg - "Linking ZSH startup files ..."