{"id":82,"date":"2020-02-03T20:45:00","date_gmt":"2020-02-03T20:45:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=82"},"modified":"2020-11-29T20:48:09","modified_gmt":"2020-11-29T20:48:09","slug":"mac-os-adding-a-directory-to-path","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/mac-os-adding-a-directory-to-path\/","title":{"rendered":"Mac OS: Adding a directory to PATH"},"content":{"rendered":"\n<p>To see if a directory is in PATH:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo $PATH\n\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin<\/code><\/pre>\n\n\n\n<p>Note that directories are separated by : symbol. To add your directory to the path, edit your bash_profile:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi ~\/.bash_profile<\/code><\/pre>\n\n\n\n<p>Add the following line of code, assuming you want to add \/usr\/local\/mysql\/bin to the PATH<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export PATH=\"\/usr\/local\/mysql\/bin:$PATH\"<\/code><\/pre>\n\n\n\n<p>Save your changes. Close your terminal. Open a new terminal. Your directory should be in PATH<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo $PATH\n\/usr\/local\/mysql\/bin:\/usr\/local\/bin:\/usr\/bin:\/bin:\/usr\/sbin:\/sbin<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To see if a directory is in PATH: Note that directories are separated by : symbol. To add your directory to the path, edit your bash_profile: Add the following line of code, assuming you want to add \/usr\/local\/mysql\/bin to the PATH Save your changes. Close your terminal. Open a new terminal. Your directory should be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[33],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-mac-os","tag-mac-os"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":83,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/82\/revisions\/83"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}