3 ms·
Greg aka graycat was a real IRC legend 20 years ago. I learned so much from him. Many a happy hour did I watch him flaming lazy newcomers looking for a quick
by gorgoiler 5y ago
Greg aka graycat was a real IRC legend 20 years ago. I learned so much from him.
Many a happy hour did I watch him flaming lazy newcomers looking for a quick fix in #debian, right about the time when Linux as a commercially viable server platform was taking off.
Almost every admonishment was accompanied by sound technical advice which was useful to lurkers as well as the unfortunate noob who dared ask.
Thanks :)
- ByThyGrace 5y agoGreg Wooledge's bash wiki is my goto resource for bash scripting. Everything I always need to find out is in there (Bash Guide + FAQ). I didn't know about his IRC persona which only improves my appreciation of him, so thanks for sharing.
- Fnoord 5y agoAh, greycat. Yeah I remember him from #debian on Freenode some 20 years ago. Smart, helpful fellow.
- dsr_ 5y agoOn occasion I have posted something in debian-user, adding "but Greg will have a better approach". Then he shows up and offers a better approach. Thanks to Greg, my bashrc contains: > stat=( ) > statcolor=("$Green" "$Red") > ... > PS1=... > ${statcolor[!!$?]}\]${stat[!!$?]}$ Which, if it's not entirely clear, puts a green checkmark or a red x in my prompt depending on the error value of the last run commandline.
- marcosdumay 5y agoOh, a long time ago (but not so long as that) I got this line from a HN thread on bash tricks: export PS1="\h:\w \$(if [ \$? = 0 ]; then echo :\\\); else echo :\\\(; fi) \$ " It's a non-colored version of it, with a happy or sad smiley.