{"id":49,"date":"2008-04-16T07:44:10","date_gmt":"2008-04-16T05:44:10","guid":{"rendered":"https:\/\/paul-anton.vanhandel.at\/?p=49"},"modified":"2008-04-16T07:44:10","modified_gmt":"2008-04-16T05:44:10","slug":"know-where-you-are","status":"publish","type":"post","link":"https:\/\/paul-anton.vanhandel.at\/?p=49","title":{"rendered":"know where you are"},"content":{"rendered":"<p>You have 10 terminals open, all to different servers and typed and exec&#8217;d the last rm -rf * on your repository server instead of the dev box with the export you didn&#8217;t need anymore &#8211; well &#8211; too bad: <div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 fusion-flex-container hundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"--awb-border-radius-top-left:0px;--awb-border-radius-top-right:0px;--awb-border-radius-bottom-right:0px;--awb-border-radius-bottom-left:0px;--awb-overflow:visible;--awb-flex-wrap:wrap;\" ><div class=\"fusion-builder-row fusion-row fusion-flex-align-items-flex-start fusion-flex-content-wrap\" style=\"width:calc( 100% + 0px ) !important;max-width:calc( 100% + 0px ) !important;margin-left: calc(-0px \/ 2 );margin-right: calc(-0px \/ 2 );\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-flex-column fusion-flex-align-self-flex-start fusion-column-no-min-height\" style=\"--awb-bg-size:cover;--awb-width-large:100%;--awb-margin-top-large:0px;--awb-spacing-right-large:0px;--awb-margin-bottom-large:0px;--awb-spacing-left-large:0px;--awb-width-medium:100%;--awb-spacing-right-medium:0px;--awb-spacing-left-medium:0px;--awb-width-small:100%;--awb-spacing-right-small:0px;--awb-spacing-left-small:0px;\"><div class=\"fusion-column-wrapper fusion-flex-justify-content-flex-start fusion-content-layout-column\">[ad#1] <!--more-->This nifty little command will show your username, hostname and path in your terminal window title:<\/p>\n<pre>PROMPT_COMMAND=&#039;echo -ne &quot;\u000033]0;${USER}@${HOSTNAME}: ${PWD}\u000007&quot;&#039;<\/pre>\n<p>Just put it on the bottom of \/etc\/profile (or anywhere else that is loaded upon login) tested on OS X onboard terminal and iTerm.<\/div><\/div><\/div><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You have 10 terminals open, all to different servers and typed and exec&#8217;d the last rm -rf * on your repository server instead of the dev box with the export you didn&#8217;t need anymore &#8211; well &#8211; too bad: [ad#1]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,15,7],"tags":[17,9],"class_list":["post-49","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-english","category-lamp","category-mac-os-x","tag-cli","tag-os-x"],"_links":{"self":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts\/49","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49"}],"version-history":[{"count":0,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/paul-anton.vanhandel.at\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}