{"id":3288,"date":"2017-05-08T10:38:52","date_gmt":"2017-05-08T10:38:52","guid":{"rendered":"http:\/\/www.nikola-breznjak.com\/blog\/?p=3288"},"modified":"2017-05-08T10:43:58","modified_gmt":"2017-05-08T10:43:58","slug":"tool-to-save-you-typing-in-terminal","status":"publish","type":"post","link":"https:\/\/nikola-breznjak.com\/blog\/miscellaneou\/tool-to-save-you-typing-in-terminal\/","title":{"rendered":"This tool will save you tons of typing in Terminal"},"content":{"rendered":"<p>Even though this may come off as a clickbait title, I&#8217;m honestly telling you that this tool will save you lots of time typing in the terminal.<\/p>\n<p>Tell me, how many times you did something like this:<\/p>\n<pre><code>mkdir testProject\ncd testProject\nmkdir app\ncd app\nmkdir config\nmkdir js\nmkdir css\ncd js\nmkdir vendor\ncd vendor\ncd ..\/..\/..\/\n<\/code><\/pre>\n<p>Let&#8217;s assume that you did all that on the <code>~\/Desktop<\/code> folder; then you&#8217;re currently at the <code>~\/Desktop\/testProject\/<\/code> folder.<\/p>\n<p>Now, say you want to go back to the <code>vendor<\/code> folder to add some other files\/folders (or do some other stuff). Naturally, you would write <code>cd app\/js\/vendor<\/code>.<\/p>\n<p>What if I tell you that you could achieve the same this by typing something like <code>z vend<\/code>?<\/p>\n<p>Enter the <a href=\"https:\/\/github.com\/rupa\/z\">Z tool<\/a>. This simple script allows you to do just that &#8211; move to some folder without having to type the whole path in.<\/p>\n<p>Just imagine, how many times you found yourself going through the terminal and changing directories and then telling yourself &#8220;Wouldn&#8217;t it be nice if I could just go back to that directory by just clicking on it (as you can in any GUI tool)?&#8221;. Well, now you can.<\/p>\n<p>This cool tool was presented to me by my coworker <a href=\"https:\/\/github.com\/ShawnMilo\">Shawn Milochik<\/a>, and I&#8217;m using it ever since. Here&#8217;s his <a href=\"https:\/\/www.youtube.com\/watch?v=FsAy5W-K57s\">YouTube video<\/a> which will show you how to install and run this tool in under 3 minutes.<\/p>\n<p>For the sake of brevity, here are the installation steps:<\/p>\n<ul>\n<li>download the <a href=\"https:\/\/github.com\/rupa\/z\/blob\/master\/z.sh\">z.sh<\/a> to your local folder (for example <code>\/Users\/nikola\/CoolScripts\/z.sh<\/code>)<\/li>\n<li>source it in your <code>.bash_profile<\/code> or <code>.zshrc<\/code> config file by adding this line: <code>source \/Users\/nikola\/CoolScripts\/z.sh<\/code><\/li>\n<li>start a new terminal window and make good use of Z<\/li>\n<\/ul>\n<p>Hope this helps you and saves you some typing time as it does for me ?<\/p>\n<blockquote class=\"twitter-tweet\" data-width=\"550\">\n<p lang=\"en\" dir=\"ltr\">This tool will save you tons of typing in Terminal &#8211; thanks to <a href=\"https:\/\/twitter.com\/ShawnMilo\">@ShawnMilo<\/a> for showing it to me <a href=\"https:\/\/t.co\/XPEegWPJRq\">https:\/\/t.co\/XPEegWPJRq<\/a><\/p>\n<p>&mdash; Nikola Bre\u017enjak (@HitmanHR) <a href=\"https:\/\/twitter.com\/HitmanHR\/status\/861531946979119105\">May 8, 2017<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Even though this may come off as a clickbait title, I&#8217;m honestly telling you that this tool will save you lots of time typing in the terminal. Tell&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3290,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-3288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-miscellaneou"],"_links":{"self":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3288","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/comments?post=3288"}],"version-history":[{"count":3,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3288\/revisions"}],"predecessor-version":[{"id":3293,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/posts\/3288\/revisions\/3293"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media\/3290"}],"wp:attachment":[{"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/media?parent=3288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/categories?post=3288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nikola-breznjak.com\/blog\/wp-json\/wp\/v2\/tags?post=3288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}