summary refs log tree commit diff
path: root/prune.zsh
blob: db85a9d10b21a12532b1aae3195304a417ba4f90 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env zsh
set -o errexit -o nounset -o pipefail

find -L ~ -type l -lname "$PWD/*" | while read -r linkPath; do
	rm "$linkPath"
	echo "$linkPath"
done
s to hiJune McEnroe Renames previous -n option to -m to stay consistent with cat -n. Prefixing lines with line numbers affects where the first tab indent ends up relative to the text above it. Not sure if it's worth fixing somehow. 2019-02-17Always split spans after newlinesJune McEnroe Simplifies ANSI and IRC output code, and prepares for line numbered output. 2019-02-15Color format specifiers light cyan in vimJune McEnroe 2019-02-15Highlight Interp as yellowJune McEnroe 2019-02-15Highlight strings in sh command substitutionsJune McEnroe 2019-02-15Add nmap gpJune McEnroe 2019-02-14Avoid newline when copying URL to pasteboardJune McEnroe 2019-02-13Add forgotten "sixth" book of H2G2June McEnroe