{"id":440,"date":"2009-04-14T12:32:49","date_gmt":"2009-04-14T09:32:49","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=440"},"modified":"2009-04-14T12:34:45","modified_gmt":"2009-04-14T09:34:45","slug":"command-exit-status-on-zsh-using-rprompt","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2009\/04\/14\/command-exit-status-on-zsh-using-rprompt\/","title":{"rendered":"command exit status on zsh using RPROMPT"},"content":{"rendered":"<p>I&#8217;ve just updated by .zshrc so that I can get the exit status of commands on a &#8220;right prompt&#8221; using zsh&#8217;s RPROMPT variable. Exit status appears only if the value is non-zero.<\/p>\n<p>Example usage:<br \/>\n<a href=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/zsh-rpropmpt-exit-codes.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.void.gr\/kargig\/blog\/wp-content\/zsh-rpropmpt-exit-codes.png\" alt=\"zsh-rpropmpt-exit-codes\" title=\"zsh-rpropmpt-exit-codes\" width=\"583\" height=\"192\" class=\"alignnone size-full wp-image-447\" srcset=\"https:\/\/www.void.gr\/kargig\/blog\/wp-content\/zsh-rpropmpt-exit-codes.png 583w, https:\/\/www.void.gr\/kargig\/blog\/wp-content\/zsh-rpropmpt-exit-codes-300x98.png 300w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n<p>You can find my <a href=\"http:\/\/www.void.gr\/kargig\/dot\/zshrc\">zshrc<\/a> and more dot files that I use in my <a href=\"http:\/\/www.void.gr\/kargig\/blog\/my-dot-files\/\">Pages\/My dot files<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve just updated by .zshrc so that I can get the exit status of commands on a &#8220;right prompt&#8221; using zsh&#8217;s RPROMPT variable. Exit status appears only if the value is non-zero. Example usage: You can find my zshrc and more dot files that I use in my Pages\/My dot files<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3,13],"tags":[62,595,61,60],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-linux","category-macosx","tag-exit-codes","tag-linux","tag-prompt","tag-zsh"],"aioseo_notices":[],"views":14097,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/440","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=440"}],"version-history":[{"count":10,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions"}],"predecessor-version":[{"id":451,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/440\/revisions\/451"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}