removed windows and linux split subdir

This commit is contained in:
Luka Jankovic 2026-02-03 23:43:22 +01:00
parent 83dda10fa8
commit 065b982734
280 changed files with 9053 additions and 426 deletions

View file

@ -0,0 +1,44 @@
#!/bin/zsh
#function t_teardown {
emulate -L zsh
setopt local_options
# reset current session
HOME=$T_PREV_HOME
ZDOTDIR=$T_PREV_ZDOTDIR
# unfunction all antidote
for fn in ${(k)functions}; do
[[ $fn == *antidote* ]] && unfunction -- $fn
done
(( $+functions[git] )) && unfunction git
# unfunction zsh-defer
(( $+functions[zsh-defer] )) && unfunction zsh-defer
# restore original path/fpath
path=( $T_PREV_PATH )
fpath=( $T_PREV_FPATH )
# restore original zstyles
source <(zstyle -L ':antidote:*' | awk '{print "zstyle -d",$2}')
source <(printf '%s\n' $T_PREV_ZSTYLES)
# remove tempdir
[[ -d "$T_TEMPDIR" ]] && command rm -rf -- "$T_TEMPDIR"
# remove vars
for var in \
ANTIDOTE_HOME \
T_TEMPDIR \
T_PREV_HOME \
T_PREV_ZDOTDIR \
T_PREV_PATH \
T_PREV_FPATH \
plugins \
libs
do
[[ -v $var ]] && unset $var
done
#}