Hacker News new | ask | show | jobs
by kstrauser 557 days ago
Absolutely do not do this. That’s all well and good until you clone a repo that ‘scripts/ls’ => install_ransomwhere().
2 comments

You can put .scripts last in PATH (or first - whichever disallows scripts/ls to take precedence over /usr/bin/ls)
You could put `.$MY-SECRET` it `PATH` and selectively symlink this to vetted script directories