blob: 4606c13febd411beab020ad4fbc62bb2d536f484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
function todo {
a=""
for i; do a="$a,$i"; done
a="{$(echo "$a" | cut -d',' -f2-)}"
echo "grep -R --exclude-dir=$a TODO | sed -e 's/.*TODO //;s/ \*\/$//;s/ -->//' | LC_ALL=C sort -u" | zsh
}
function which {
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
} #export -f which
function trash {
mkdir "$HOME/.trash"
for file in "$@"; do
mv "$file" "$HOME/.trash/$(basename $file).$(date +%Y%m%d-%H%M%S)"
done
} # Add this to your crontab:
# 43 0 * * 3 find ~/.trash -type f -mtime +90 -delete
|