]> arthur.barton.de Git - ax-zsh.git/blob - core/99_cleanup/99_cleanup.zlogin
New core module "99_cleanup"
[ax-zsh.git] / core / 99_cleanup / 99_cleanup.zlogin
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 99_cleanup.zlogin: Don't pollute the namespace, remove variables/functions/...
3
4 for func (
5         ax_hostname_prompt_root
6         ax_hostname_prompt_yn
7         ax_logname_prompt_root
8         ax_logname_prompt_yn
9 ); do
10         unfunction $func
11 done
12
13 for func ($ax_logname_prompt_functions); do
14         unfunction $func 2>/dev/null
15 done
16 unset ax_logname_prompt_functions
17
18 for func ($ax_hostname_prompt_functions); do
19         unfunction $func 2>/dev/null
20 done
21 unset ax_hostname_prompt_functions