aboutsummaryrefslogtreecommitdiff
path: root/rm.sh
blob: 633f9df4b75801a8abb74408c5207b84f1f491f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Moves an element to a litter folder instead of permanently removing it

folder="$HOME/litter/"
[ -d "$folder" ] || mkdir "$folder"
for file in "$@"
do
	mv "$file" "$folder"
done
[ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+14 "$STATUS_BAR"