{"id":278,"date":"2015-11-24T11:36:31","date_gmt":"2015-11-24T11:36:31","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=278"},"modified":"2015-11-24T11:36:31","modified_gmt":"2015-11-24T11:36:31","slug":"configuring-a-console-prompt-for-bash-linux","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2015\/11\/24\/configuring-a-console-prompt-for-bash-linux\/","title":{"rendered":"Configuring a Console Prompt for BASH Linux"},"content":{"rendered":"<p>In BASH it&#8217;s pretty simple to customize the console prompt. There are a few good reasons for doing this, for instance if you are pulling out data from the commandline or running automation tasks and want to know when each section was executed. Here is how I did it:<\/p>\n<h3>Edit .bash_profile<\/h3>\n<pre>\r\ncd\r\nvi .bash_profile\r\n<\/pre>\n<h3> Insert this line into .bash_profile <\/h3>\n<pre>\r\nPS1='bash-\\v \\d \\t \\H \\w\\$ '\r\n<\/pre>\n<h3> source it <\/h3>\n<pre>\r\n$source .bash_profile\r\nbash-4.9 Tue Nov 24 11:32:09 pirax-test ~#\r\n<\/pre>\n<p>Nice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In BASH it&#8217;s pretty simple to customize the console prompt. There are a few good reasons for doing this, for instance if you are pulling out data from the commandline or running automation tasks and want to know when each &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2015\/11\/24\/configuring-a-console-prompt-for-bash-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,9,7],"tags":[],"class_list":["post-278","post","type-post","status-publish","format-standard","hentry","category-bash","category-linux","category-management-tools"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":279,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/278\/revisions\/279"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}