Hacker News new | past | comments | ask | show | jobs | submit login

In base you need a hook that get the command before your shell execute the command. when the shell get the command interrupt this project execute shellfirm before summation in your shell



Yeah I get it. Your code is fine.

I just find it hilarious how that guy wanted you to implement this as a shell script so he could “audit it very easily”. I mean, bash-preexec.sh isn’t the worst shell script I’ve seen (It even has a Bats test!), but anyone that thinks shell scripts are easy to audit is full of shit.


In zshrc is much more easier based on the hooks that you get




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: