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"
20 echo "* Installing AX-ZSH into \"$AXZSH\" ..."
22 safe_rm "$AXZSH" || exit 1
23 ln -sv "$PWD" "$AXZSH" || exit 1
25 for f in ~/.zlogin ~/.zlogout ~/.zprofile ~/.zshrc; do
26 safe_rm "$f" || exit 1
27 ln -sv "$AXZSH/ax.zsh" "$f" || exit 1
30 if [ ! -d "$AXZSH/active_plugins" ]; then
31 echo "* Initializing plugin directory \"$AXZSH/active_plugins\" ..."
32 zsh "$AXZSH/bin/axzshctl" reset-plugins
34 echo "* Plugin directory \"$AXZSH/active_plugins\" already exists. Ok."