Various scripts that I maintain
utils scripts
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

clean-bin: new script

+19
+3
README.md
··· 60 60 ## ln-bin 61 61 Quickly symlink executable files to `~/.local/bin/` 62 62 63 + ## clean-bin 64 + Quickly remove broken symlinks from `~/.local/bin` 65 + 63 66 ## lyricfetch 64 67 65 68 > NOTE: I reccomend using a [lrclib](https://lrclib.net/) client such as [lrcget](https://github.com/tranxuanthang/lrcget) or [Chronograph](https://flathub.org/apps/io.github.dzheremi2.lrcmake-gtk) instead!
+16
scripts/clean-bin.nu
··· 1 + #!/usr/bin/env nu 2 + # SPDX-License-Identifier: AGPL-3.0-only 3 + # Copyright (c) 2026 MatrixFurry <matrix@matrixfurry.com> 4 + 5 + # Remove broken symlinks from ~/.local/bin 6 + def main [] { 7 + ls -l ~/.local/bin 8 + | where type == symlink 9 + | each {|link| 10 + if not ($link.target | path exists) { 11 + print $"Removing ($link.name)" 12 + rm $link.name 13 + } 14 + } 15 + null 16 + }