{"id":179,"date":"2006-01-11T12:57:19","date_gmt":"2006-01-11T09:57:19","guid":{"rendered":"http:\/\/void.gr\/kargig\/blog\/?p=179"},"modified":"2006-01-11T12:57:43","modified_gmt":"2006-01-11T09:57:43","slug":"some-links-about-shells","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2006\/01\/11\/some-links-about-shells\/","title":{"rendered":"Some links about shells"},"content":{"rendered":"<p>A small <a href=\"http:\/\/www.adamspiers.org\/computing\/shells\/\">introduction to shells<\/a> by Adam Spiers.<\/p>\n<p><a href=\"http:\/\/www.livejournal.com\/users\/mendel\/128965.html\">Bash now supports sockets<\/a><\/p>\n<p>And if you wonder how that smiley &#8220;<code>:) fishsticks$<\/code>&#8221; on the prompt of user mendel appears:<\/p>\n<p>Just edit your bashrc, add this line somewhere:<br \/>\n<code>smiley () { if [ $? == 0 ]; then echo ':)';else echo ':(';fi; }<\/code><br \/>\nand then change your PS1 line to include this:<br \/>\n<code>\\$(smiley)<\/code><br \/>\nin the beggining&#8230;so that it looks somewhat like this:<br \/>\n<code>PS1=\"\\$(smiley) \\[\\033[01;31m\\]\\h\\[\\033[01;34m\\] \\W \\$\\[\\033[00m\\] \"<\/code><\/p>\n<p>It&#8217;s somewhat funny&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A small introduction to shells by Adam Spiers. Bash now supports sockets And if you wonder how that smiley &#8220;:) fishsticks$&#8221; on the prompt of user mendel appears: Just edit your bashrc, add this line somewhere: smiley () { if [ $? == 0 ]; then echo &#8216;:)&#8217;;else echo &#8216;:(&#8216;;fi; } and then change your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[1,3],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-general","category-linux"],"aioseo_notices":[],"views":3331,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}