{"id":145514,"date":"2018-08-16T08:00:58","date_gmt":"2018-08-16T12:00:58","guid":{"rendered":"https:\/\/spin.aa8q45el-liquidwebsites.com\/?p=145514"},"modified":"2022-11-23T05:37:16","modified_gmt":"2022-11-23T10:37:16","slug":"command-line-tools","status":"publish","type":"post","link":"https:\/\/spin.atomicobject.com\/command-line-tools\/","title":{"rendered":"Six Command Line Tools I Use Every Day"},"content":{"rendered":"<p>Knowing how to use the command line\u2013and how to use it <em>well<\/em>\u2013is often a necessary skill. I love working on the command line, and I love discovering new tools that I can use. Here are a few that I use every day, all of which have greatly boosted my productivity.<!--more--><\/p>\n<h2>Homebrew<\/h2>\n<p><a href=\"https:\/\/brew.sh\">Homebrew<\/a> is the best package manager for macOS. Period. I get the majority of the command line tools that I use (and all of the ones mentioned in this post) from Homebrew. Installing a new tool is as simple as<code>brew install package-name<\/code>. If I can&#8217;t find a package on Homebrew, the likelihood that I&#8217;ll install it drops drastically.<\/p>\n<h2>Fasd<\/h2>\n<p><a href=\"https:\/\/github.com\/clvv\/fasd\">Fasd<\/a> is my favorite way to navigate around my computer. It ranks your files and folders based on how frequently and recently (a.k.a &#8220;frecency&#8221;) you use them. Jumping to<code>\/a\/very\/long\/path\/that\/you\/thought\/would\/be\/easy\/to\/remember<\/code> is as simple as typing in<code>z rem<\/code>. The<code>z<\/code> command is a built-in alias that they provide and list in their documentation. Fasd simplifies working with files and directories.<\/p>\n<h2>direnv<\/h2>\n<p><a href=\"https:\/\/direnv.net\">direnv<\/a> is a directory-specific environment switcher. It evaluates a local<code>.envrc<\/code> file (if there is one) when entering a directory. That means you can have environment variables, aliases, functions, and more details that are specific to local directories.<\/p>\n<p>On one of my projects, I want to set environment variables <code>SINGLE_PROCESS<\/code>, <code>NODE_ENV<\/code>, <code>PATH<\/code>, <code>TS_NODE_FAST<\/code>, and more. However, I don&#8217;t always want these set, so it wouldn&#8217;t make sense to put them in my<code>.profile<\/code>. I also have some project-specific aliases, but I&#8217;ll never need to use them outside of this project.<\/p>\n<p>This is where direnv comes in. It loads the<code>.envrc<\/code> when entering the directory, and unloads when leaving it.<\/p>\n<h2>fzf<\/h2>\n<p><a href=\"https:\/\/github.com\/junegunn\/fzf\">fzf<\/a> is like <code>less<\/code> with built-in fuzzy-find. Run <code>history | fzf<\/code>, and start typing a command that you <em>sort of<\/em> remember. Or<code>find . | fzf<\/code> to look for the path to a file. Any time that you might use <code>less<\/code>, <code>fzf<\/code> is a good alternative.<\/p>\n<h2>ripgrep<\/h2>\n<p><a href=\"https:\/\/github.com\/BurntSushi\/ripgrep\">ripgrep<\/a> is a blazing-fast alternative to grep. It searches for regex patterns and ignores files and directories in <code>.gitignore<\/code> by default.<\/p>\n<h2>Virtual Environments<\/h2>\n<p>One of the challenges of working on different projects is managing lots of different software versions. While I don&#8217;t personally use <a href=\"https:\/\/www.docker.com\">Docker<\/a> for this, some people report good luck with using it as a development tool to solve this very problem.<\/p>\n<p>I personally just use virtual environments: <a href=\"https:\/\/github.com\/creationix\/nvm\">nvm<\/a> for Node, <a href=\"https:\/\/github.com\/pyenv\/pyenv\">pyenv<\/a> for Python, <a href=\"https:\/\/github.com\/rbenv\/rbenv\">rbenv<\/a> for Ruby, etc. I&#8217;m sure there are reasons to choose nodenv or nvm or n, but I don&#8217;t have a strong preference here. Virtual environments reduce the pain of working with different versions.<\/p>\n<p>Say I&#8217;m working on a Python 2.7.10 project and a Python 3.5.2 project at the same time, and both use the same library. In this case, I don&#8217;t want to install a library globally because they&#8217;ll have different dependencies. Creating separate virtual environments will isolate both projects and keep them apart from each other.<\/p>\n<p>What are your go-to command line tools?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Knowing how to use the command line\u2013and how to use it well\u2013is often a necessary skill. I love working on the command line, and I love discovering new tools that I can use. Here are a few that I use every day, all of which have greatly boosted my productivity.<\/p>\n","protected":false},"author":531,"featured_media":145874,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1731],"tags":[1006,1246,2421],"series":[],"class_list":["post-145514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-tools","tag-bash","tag-command-line","tag-devtools"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Six Command Line Tools that I Use Every Day<\/title>\n<meta name=\"description\" content=\"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/spin.atomicobject.com\/command-line-tools\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Six Command Line Tools that I Use Every Day\" \/>\n<meta property=\"og:description\" content=\"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/spin.atomicobject.com\/command-line-tools\/\" \/>\n<meta property=\"og:site_name\" content=\"Atomic Spin\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/atomicobject\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-16T12:00:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-23T10:37:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dan Kelch\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@atomicobject\" \/>\n<meta name=\"twitter:site\" content=\"@atomicobject\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dan Kelch\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/\"},\"author\":{\"name\":\"Dan Kelch\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/person\\\/18280e2df3881bafbd71721f916510a7\"},\"headline\":\"Six Command Line Tools I Use Every Day\",\"datePublished\":\"2018-08-16T12:00:58+00:00\",\"dateModified\":\"2022-11-23T10:37:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/\"},\"wordCount\":496,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/atomicobject.com\\\/\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/command-line-tools1.jpg\",\"keywords\":[\"bash\",\"Command Line\",\"devtools\"],\"articleSection\":[\"Developer Tools\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/\",\"name\":\"Six Command Line Tools that I Use Every Day\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/command-line-tools1.jpg\",\"datePublished\":\"2018-08-16T12:00:58+00:00\",\"dateModified\":\"2022-11-23T10:37:16+00:00\",\"description\":\"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/command-line-tools\\\/#primaryimage\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/command-line-tools1.jpg\",\"contentUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/command-line-tools1.jpg\",\"width\":1200,\"height\":800},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#website\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/\",\"name\":\"Atomic Spin\",\"description\":\"Atomic Object\u2019s blog on everything we find fascinating.\",\"publisher\":{\"@id\":\"https:\\\/\\\/atomicobject.com\\\/\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/spin.atomicobject.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#organization\",\"name\":\"Atomic Object\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/AO-Logo-Emblem-Color.png\",\"contentUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/AO-Logo-Emblem-Color.png\",\"width\":258,\"height\":244,\"caption\":\"Atomic Object\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/atomicobject\",\"https:\\\/\\\/x.com\\\/atomicobject\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/person\\\/18280e2df3881bafbd71721f916510a7\",\"name\":\"Dan Kelch\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg\",\"caption\":\"Dan Kelch\"},\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/author\\\/dan-kelch\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Six Command Line Tools that I Use Every Day","description":"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/spin.atomicobject.com\/command-line-tools\/","og_locale":"en_US","og_type":"article","og_title":"Six Command Line Tools that I Use Every Day","og_description":"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.","og_url":"https:\/\/spin.atomicobject.com\/command-line-tools\/","og_site_name":"Atomic Spin","article_publisher":"https:\/\/www.facebook.com\/atomicobject","article_published_time":"2018-08-16T12:00:58+00:00","article_modified_time":"2022-11-23T10:37:16+00:00","og_image":[{"width":1200,"height":800,"url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg","type":"image\/jpeg"}],"author":"Dan Kelch","twitter_card":"summary_large_image","twitter_creator":"@atomicobject","twitter_site":"@atomicobject","twitter_misc":{"Written by":"Dan Kelch","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/#article","isPartOf":{"@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/"},"author":{"name":"Dan Kelch","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/person\/18280e2df3881bafbd71721f916510a7"},"headline":"Six Command Line Tools I Use Every Day","datePublished":"2018-08-16T12:00:58+00:00","dateModified":"2022-11-23T10:37:16+00:00","mainEntityOfPage":{"@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/"},"wordCount":496,"commentCount":5,"publisher":{"@id":"https:\/\/atomicobject.com\/"},"image":{"@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/#primaryimage"},"thumbnailUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg","keywords":["bash","Command Line","devtools"],"articleSection":["Developer Tools"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/spin.atomicobject.com\/command-line-tools\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/","url":"https:\/\/spin.atomicobject.com\/command-line-tools\/","name":"Six Command Line Tools that I Use Every Day","isPartOf":{"@id":"https:\/\/spin.atomicobject.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/#primaryimage"},"image":{"@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/#primaryimage"},"thumbnailUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg","datePublished":"2018-08-16T12:00:58+00:00","dateModified":"2022-11-23T10:37:16+00:00","description":"Knowing how to use the command line\u2014and how to use it well\u2014is often a necessary skill. Here are a few command line tools I use every day for productivity.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/spin.atomicobject.com\/command-line-tools\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/spin.atomicobject.com\/command-line-tools\/#primaryimage","url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg","contentUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/command-line-tools1.jpg","width":1200,"height":800},{"@type":"WebSite","@id":"https:\/\/spin.atomicobject.com\/#website","url":"https:\/\/spin.atomicobject.com\/","name":"Atomic Spin","description":"Atomic Object\u2019s blog on everything we find fascinating.","publisher":{"@id":"https:\/\/atomicobject.com\/"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/spin.atomicobject.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/spin.atomicobject.com\/#organization","name":"Atomic Object","url":"https:\/\/spin.atomicobject.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/logo\/image\/","url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/AO-Logo-Emblem-Color.png","contentUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/AO-Logo-Emblem-Color.png","width":258,"height":244,"caption":"Atomic Object"},"image":{"@id":"https:\/\/spin.atomicobject.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/atomicobject","https:\/\/x.com\/atomicobject"]},{"@type":"Person","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/person\/18280e2df3881bafbd71721f916510a7","name":"Dan Kelch","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/503101d81563ea4d722ae19a733821e7c6d6f6f39baaa916ac311d48010e1fbb?s=96&d=blank&r=pg","caption":"Dan Kelch"},"url":"https:\/\/spin.atomicobject.com\/author\/dan-kelch\/"}]}},"_links":{"self":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts\/145514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/users\/531"}],"replies":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/comments?post=145514"}],"version-history":[{"count":0,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts\/145514\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/media\/145874"}],"wp:attachment":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/media?parent=145514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/categories?post=145514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/tags?post=145514"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/series?post=145514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}