Re:Ask HN: How do you organize your home directory?
by oftenwrong on Thursday September 13, 2018 @10:13AM
(#17978746)
Pretty broad question. One thing I suggest: Do not keep downloads in your home directory. Keep them in a directory under /tmp. This avoids accumulation of download clutter.
[ Parent
| on HN ]
Re:Ask HN: How do you organize your home directory?
by wingerlang on Thursday September 13, 2018 @12:25PM
(#17979841)
I use Hazel to continuously trim downloads. Every time a file is 14 days old it is moved into a 'review' folder and I get a notification about it. This gives me a steady stream of old files to either delete or move into a proper folder.
Sure I could do it in the download folder directly as well, but in reality I had to go through 100s of files every few months which can be annoying.
I wrote about it a few years ago here and I do it still http://jontelang.com/blog/2015/08/17/hazel-is-great.html
Re:Ask HN: How do you organize your home directory?
by oftenwrong on Friday September 14, 2018 @09:08AM
(#17986910)
Just for fun, I tried to do something similar with a shell script:
set -eu
AGE_LIMIT=$(( `date +%s` - (14 * 86400) ))
for FILE in ~/Downloads/*
do
if [ -e "$FILE" ]
then
export `stat -s "$FILE"`
if [ $st_birthtime -lt $AGE_LIMIT ]
then
mv "$FILE" "~/Needing review/"
fi
fi
done
Run it from cron. Typical caveats of shell scripts apply!
Re:Ask HN: How do you organize your home directory?
by b_rodriguez on Friday September 14, 2018 @06:23PM
(#17991540)
I imagine you could instead do it like this:
find ~/Downloads -Btime +14d -exec mv {} ~/Needing\ review \;
Some changes may be necessary as I am not able to test it right now
Re:Ask HN: How do you organize your home directory?
by akulbe on Friday September 14, 2018 @06:55AM
(#17986208)
Hazel is amazing. That said... I'm no longer a Mac user.
There are no good Windows equivalents.
I wish I had enough programming knowledge to write a truly cross-platform equivalent.
This is a serious itch I'd like to scratch.