3 # AX-ZSH: Alex' Modular ZSH Configuration
4 # Copyright (c) 2015 Alexander Barton <alex@barton.de>
8 if [ -f "$1" -a ! -L "$1" ]; then
9 rm -f "$1.bak" || exit 1
10 mv -v "$1" "$1.bak" || exit 1
17 [ -n "$AXZSH" ] || AXZSH="$HOME/.axzsh"
19 echo "* Installing AX-ZSH into \"$AXZSH\" ..."
21 safe_rm "$AXZSH" || exit 1
22 ln -sv "$PWD" "$AXZSH" || exit 1
24 for f in ~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc; do
25 safe_rm "$f" || exit 1
26 ln -sv "$AXZSH/ax.zsh" "$f" || exit 1
29 if [ ! -d "$AXZSH/active_plugins" ]; then
30 echo "* Initializing plugin directory \"$AXZSH/active_plugins\" ..."
31 zsh "$AXZSH/bin/axzshctl" reset-plugins
33 echo "* Plugin directory \"$AXZSH/active_plugins\" already exists. Ok."