mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Function to prune broken symlinks.
This commit is contained in:
4
dotfiles/zshrc.d/prune-broken-symlinks.zsh
Normal file
4
dotfiles/zshrc.d/prune-broken-symlinks.zsh
Normal file
@@ -0,0 +1,4 @@
|
||||
prune-broken-symlinks() {
|
||||
setopt localoptions nounset
|
||||
find $1 -type l -xtype l -print -delete
|
||||
}
|
||||
Reference in New Issue
Block a user