diff --git a/zlogout b/zlogout new file mode 100644 index 00000000..a4def0f4 --- /dev/null +++ b/zlogout @@ -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 +