Suicide Linux
qntm.org
Suicide Linux
1–10 of 135 posts
Re: Suicide Linux
#2Computers already demand a level of precision that is hard for biological lifeforms to conform to. Now this. Not sure if I should laugh or cry.
Re: Suicide Linux
#3Reminds me of bash roulette.
http://www.bash.org/?96164
Re: Suicide Linux
#4He seems to have forgotten the --no-preserve-root flag.
Re: Suicide Linux
#5A bit too unforgiving for my taste :)
To err is .. destruction!
Re: Suicide Linux
#6a less destructive version of this is to install `sl` on your linux or mac.
Re: Suicide Linux
#7a less destructive version of this is to install `sl` on your linux or mac.
That gets installed right after cowsay.
I have my priorities.
Re: Suicide Linux
#8This reminds me of Vigil, "the eternal morally vigilant programming language" https://github.com/munificent/vigil
Re: Suicide Linux
#9Reminds me of bash roulette. http://www.bash.org/?96164
Also in comic strip form: http://www.commitstrip.com/en/2014/05/16/russian-roulette/
Re: Suicide Linux
#10I've added a counter (of successful commands in a row) to my bashrc. I've seen it as high as 120.
function promptCommand()
{
LAST_STATUS=$?
# Set title of window to dir, then add new line to prompt.
PS1='\[\e]0;\w\a\]\n'
if [ $LAST_STATUS -eq 0 ]; then
((successes++))
PS1+='\[\033[1;32m\][$successes]'
else
successes=0
PS1+='\[\033[1;31m\][0 $LAST_STATUS]'
fi
PS1+='\[\033[0;32m\] '
PS1+='\w $(date +%H:%M) \$ \[\033[0m\]'
}
lastStatus=0
successes=-1
PROMPT_COMMAND="promptCommand"
My prompt: [0] /home/bar/g3 14:19 $ echo "boo"
boo
[1] /home/bar/g3 14:19 $