about summary refs log tree commit diff
path: root/zsh/.zlogout
blob: d23ba0aba91f3455da8e3bc41a1bc81fa41db34d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env zsh

if [ -f "${HOME}/.bin/logout-hook" ]
then
    source "${HOME}/.bin/logout-hook"

    rm_existing "${ZLOGIN}.zwc.old"
    rm_existing "${ZLOGOUT}.zwc.old"
    rm_existing "${ZPROFILE}.zwc.old"
    rm_existing "${ZSHENV}.zwc.old"
    rm_existing "${ZSHRC}.zwc.old"
fi

Consider giving Nix/NixOS a try! <3