diff --git a/dotfiles/zshrc.d/prune-broken-symlinks.zsh b/dotfiles/zshrc.d/prune-broken-symlinks.zsh new file mode 100644 index 0000000..458d2e4 --- /dev/null +++ b/dotfiles/zshrc.d/prune-broken-symlinks.zsh @@ -0,0 +1,4 @@ +prune-broken-symlinks() { + setopt localoptions nounset + find $1 -type l -xtype l -print -delete +}