{"id":272,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=272"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"add-a-scripts-directory-to-your-path","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=272","title":{"rendered":"Add\n a scripts directory to your path"},"content":{"rendered":"<p>While the official place to put executable files that you&#8217;ve added to the system yourself and want to be accessible from any Terminal prompt is <code>\/boot\/home\/config\/bin<\/code>, many people who work with a lot of scripts find it useful to store them in a separate directory, to keep them separate from the uneditable, actual binaries living there. I recommend creating a folder at <code>\/boot\/home\/config\/scripts<\/code> for this purpose. To make this path accessible from any prompt, add the line<\/p>\n<pre>PATH=$PATH:\/boot\/home\/config\/scripts<\/pre>\n<p>to <code>\/boot\/home\/config\/boot\/UserSetupEnvironment<\/code> or <code>\/boot\/home\/.profile<\/code>. If you add it to the former, you&#8217;ll need to reboot for it to take effect. If you add it to the latter, you&#8217;ll need to open a new Terminal window (because <code>UserSetupEnvironment<\/code> is applicable to the whole environment, whereas <code>.profile<\/code> is read into memory every time you open a Terminal window).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While the official place to put executable files that you&#8217;ve added to the system yourself and want to be accessible from any Terminal prompt is \/boot\/home\/config\/bin, many people who work with a lot of scripts find it useful to store them in a separate directory, to keep them separate from the uneditable, actual binaries living [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=272"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}