3 ## clean up any remaining sockets from gpg forwarding
4 [[ -v _GNUPG_SOCK_DEST_BASE ]] && rm -f $_GNUPG_SOCK_DEST_BASE*(=N)
6 ## manually reset terminal for interactive logout
7 if [[ -o interactive ]] {
8 # send xterm scrollback clear extension just in case:
9 # - TERM may not be set correctly
10 # - terminfo/termcap database entry for reset may be buggy
12 # use terminfo/termcap directly instead of relying on system clear/reset:
13 # - often they are just wrappers for ncurses tput or other tools
14 # - they may not even exist on lightweight systems
15 # - provided scripts/binaries may be buggy or broken
17 if [[ -v terminfo ]] {
19 [[ -v terminfo[$x] ]] || continue
24 if { (( y )) && [[ -v termcap ]] } {
26 [[ -v termcap[$x] ]] || continue
32 # fallback, send ECMA-48 clear
38 ### load site-specific
39 load-site-dotfile zlogout