]> arthur.barton.de Git - ax-zsh.git/blob - core/50_axzsh/50_axzsh.zshrc
P10k: Read config after enabling instant prompt
[ax-zsh.git] / core / 50_axzsh / 50_axzsh.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 50_axzsh.zshrc: Initialize AX-ZSH
3
4 function axzshctl() {
5         zsh "$AXZSH/bin/axzshctl" "$@" || return $?
6
7         case "$1" in
8                 "disable"*|"enable"*|"reset"*|"set"*|"up"*)
9                         # Command which potentially "changed state".
10                         if [[ -o login ]]; then
11                                 echo "Restarting login shell ..."
12                                 exec -l "$SHELL"
13                         else
14                                 echo "Restarting shell ..."
15                                 exec "$SHELL"
16                         fi
17                         ;;
18         esac
19         return 0
20 }