top | item 42353144 (no title) L3viathan | 1 year ago You can put `./scripts` in your $PATH, if you want. discuss order hn newest BeetleB|1 year ago 1. 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. kstrauser|1 year ago Absolutely do not do this. That’s all well and good until you clone a repo that ‘scripts/ls’ => install_ransomwhere(). olejorgenb|1 year ago You can put .scripts last in PATH (or first - whichever disallows scripts/ls to take precedence over /usr/bin/ls) olejorgenb|1 year ago You could put `.$MY-SECRET` it `PATH` and selectively symlink this to vetted script directories
BeetleB|1 year ago 1. 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.
kstrauser|1 year ago Absolutely do not do this. That’s all well and good until you clone a repo that ‘scripts/ls’ => install_ransomwhere(). olejorgenb|1 year ago You can put .scripts last in PATH (or first - whichever disallows scripts/ls to take precedence over /usr/bin/ls) olejorgenb|1 year ago You could put `.$MY-SECRET` it `PATH` and selectively symlink this to vetted script directories
olejorgenb|1 year ago You can put .scripts last in PATH (or first - whichever disallows scripts/ls to take precedence over /usr/bin/ls)
olejorgenb|1 year ago You could put `.$MY-SECRET` it `PATH` and selectively symlink this to vetted script directories
BeetleB|1 year ago
2. This works only if you just happen to be in the directory above scripts.
kstrauser|1 year ago
olejorgenb|1 year ago
olejorgenb|1 year ago