about summary refs log tree commit diff
path: root/find-broken-ln
blob: 8db7db9fe10c39b3f55a39bf5ae1343ea2e43b69 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ -t 1 ]; then
    pattern="%p \033[38;5;4m=>\033[m \033[38;5;9m%l\033[m\n"
else
    pattern="%p => %l\n"
fi

find "${@}" -xtype l -printf "${pattern}"

Consider giving Nix/NixOS a try! <3