4 ms·
You can put `./scripts` in your $PATH, if you want.
by L3viathan 2y ago
You can put `./scripts` in your $PATH, if you want.
- kstrauser 2y agoAbsolutely do not do this. That’s all well and good until you clone a repo that ‘scripts/ls’ => install_ransomwhere().
- olejorgenb 2y agoYou could put `.$MY-SECRET` it `PATH` and selectively symlink this to vetted script directories
- olejorgenb 2y agoYou can put .scripts last in PATH (or first - whichever disallows scripts/ls to take precedence over /usr/bin/ls)
- BeetleB 2y ago1. This requires that all your projects use "scripts" as the directory name. 2. This works only if you just happen to be in the directory above scripts.