zsh: clean up fasd on zlogout

This commit is contained in:
Henrik Lissner 2015-12-21 00:40:38 -05:00
parent a72b4d6c6d
commit fe2010231a

12
zlogout Normal file
View file

@ -0,0 +1,12 @@
# Clean up symlinks in fasd
if is-callable 'fasd'; then
for entry in $(fasd -l); do
if [[ -L "$entry" ]]; then
local realpath=$(realpath "$entry")
fasd -D "$entry"
fasd -A "$realpath"
fi
done
fi