{"id":7918,"date":"2004-09-17T05:46:51","date_gmt":"2004-09-17T03:46:51","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2004\/09\/17\/bash-prompts\/"},"modified":"2005-04-17T07:55:51","modified_gmt":"2005-04-17T04:55:51","slug":"bash-prompts","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2004\/09\/17\/bash-prompts\/","title":{"rendered":"Bash prompts"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p><img decoding=\"async\" class=\"alignright\" src=\"\/wordpress\/wp-content\/20040917-flex_bash_prompt.png\" alt=\"\"\/>Maintainer of the <a href=\"http:\/\/dreaming.org\/~giles\/bashprompt\/howto\/book1.html\">Bash Prompt HOWTO<\/a>, it turns out, also keeps a <a href=\"http:\/\/dreaming.org\/~giles\/bashprompt\/prompts\/\">small website<\/a> with examlpes of different bash prompts.  It provides screenshots together with code for some really wicked prompts.  If you are into that kind of things, but all of ideas, than check the site out.  Maybe you&#8217;ll find something for yourself. :)<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Maintainer of the Bash Prompt HOWTO, it turns out, also keeps a small website with examlpes of different bash prompts. It provides screenshots together with code for some really wicked prompts. If you are into that kind of things, but all of ideas, than check the site out. Maybe you&#8217;ll find something for yourself. :)<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62],"tags":[1960],"keyring_services":[],"class_list":["post-7918","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","tag-command-line"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":8596,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/02\/06\/bash-prompts\/","url_meta":{"origin":7918,"position":0},"title":"Bash prompts","author":"Leonid Mamchenkov","date":"February 6, 2005","format":false,"excerpt":"Today I once again did something really stupid while being logged in as root. I already had my root and normal user bash prompts colored differently, but it turns out that the difference was not obvious enough. So, I decided to recolor the prompts a little bit more vividly. It\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15663,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/10\/05\/day-in-brief-2011-10-05\/","url_meta":{"origin":7918,"position":1},"title":"Day in brief &#8211; 2011-10-05","author":"Leonid Mamchenkov","date":"October 5, 2011","format":false,"excerpt":"@mashable a big chunk of Google+ usage is not public, IMHO # I favorited a @YouTube video http:\/\/t.co\/7yYj5ai6 \u0413\u0440\u0443\u0441\u0442\u043d\u0430\u044f \u0434\u0435\u0442\u0441\u043a\u0430\u044f \u043f\u0435\u0441\u0435\u043d\u043a\u0430 # Shared: no. 511 \u2013 @silent_musings http:\/\/t.co\/3qARkOqw # Shared: Announcing the release of Fedora 16 Beta http:\/\/t.co\/DIQ4Nuc7 # Kings of Convenience - Me in You on Vimeo http:\/\/t.co\/llKKL00x #\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16720,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/09\/18\/bash-redirections-cheat-sheet\/","url_meta":{"origin":7918,"position":2},"title":"Bash Redirections Cheat Sheet","author":"Leonid Mamchenkov","date":"September 18, 2012","format":"link","excerpt":"Bash Redirections Cheat Sheet Even the experienced bash users will probably find a couple of new things in this cheat sheet.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9014,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/05\/27\/handling-arguments-with-spaces-in-bash\/","url_meta":{"origin":7918,"position":3},"title":"Handling arguments with spaces in bash","author":"Leonid Mamchenkov","date":"May 27, 2005","format":false,"excerpt":"Way to often I get it wrong, so I decided to right this down... When processing the list of arguments in your bash script, remember that often arguments such as file names contain spaces. The wrong way to go about this is: #!\/bin\/bash for FILE in $* do echo \"$FILE\"\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28622,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/06\/11\/safe-ways-to-do-things-in-bash\/","url_meta":{"origin":7918,"position":4},"title":"Safe ways to do things in bash","author":"Leonid Mamchenkov","date":"June 11, 2018","format":false,"excerpt":"\"Safe ways to do things in bash\" is yet another guide to some of the best practices for writing bash scripts.\u00a0 It covers all the usual bits of quoting, escaping, error handling, and more.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":29107,"url":"https:\/\/mamchenkov.net\/wordpress\/2018\/12\/18\/bash-parameter-expansion\/","url_meta":{"origin":7918,"position":5},"title":"Bash parameter expansion","author":"Leonid Mamchenkov","date":"December 18, 2018","format":false,"excerpt":"If you've ever written a bash script with variables, and know that it wasn't your last one,\u00a0 I promise you, you'll love this wiki page.\u00a0 It covers a whole lot of different ways to expand and manipulate variable values in bash, all on a single, conveniently organized page.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=7918"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7918\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=7918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=7918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=7918"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=7918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}