[{"data":1,"prerenderedAt":176},["ShallowReactive",2],{"article-how_to_easily_browse_through_frequent_folders":3,"article-surround-how_to_easily_browse_through_frequent_folders":167},{"id":4,"title":5,"author":6,"body":8,"description":155,"extension":156,"image":157,"keywords":158,"meta":159,"navigation":160,"path":161,"publishedAt":162,"seo":163,"stem":164,"tags":165,"__hash__":166},"articles\u002Farticles\u002Fhow_to_easily_browse_through_frequent_folders.md","How to easily browse through frequent folders",{"name":7},"Danilo Pinotti",{"type":9,"value":10,"toc":152},"minimark",[11,15,19,22,33,36,42,65,80,94,105,111,122,138],[12,13,5],"h1",{"id":14},"how-to-easily-browse-through-frequent-folders",[16,17,18],"p",{},"When I'm using a Linux terminal, I am often browsing through folders, but, I am frequently browsing through the same\nfolders.",[16,20,21],{},"I'm a Software Developer and I have a folder named \"Development\" containing all my software projects, e.g:",[23,24,29],"pre",{"className":25,"code":27,"language":28},[26],"language-text","\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fblog\n\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fproject1\n\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fproject2\n\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fgithub\n\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fgithub\u002Flaravel-framework\n","text",[30,31,27],"code",{"__ignoreMap":32},"",[16,34,35],{},"Today, when I need to browse to one of these, I need to enter a command like:",[23,37,40],{"className":38,"code":39,"language":28},[26],"cd ~\u002FDevelopment\u002Fblog\ncd ~\u002FDevelopment\u002Fproject1\n",[30,41,39],{"__ignoreMap":32},[16,43,44,45,48,49,55,56,59,60,64],{},"These commands take a little time to write, since I need do type ",[30,46,47],{},"cd ~\u002FDoc"," -> then ",[50,51,54],"kbd",{"className":52},[50,53],"kbd-sm","tab"," (for autocomplete) -> then type ",[30,57,58],{},"blog"," and press ",[50,61,63],{"className":62},[50,53],"enter",".",[16,66,67,68,71,72,75,76,79],{},"Now, imagine if you could just type ",[30,69,70],{},"cd blog"," and then press ",[50,73,63],{"className":74},[50,53],", whatever the folder\nyou are currently in, and you \"magically\" go to ",[30,77,78],{},"\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fblog"," folder.",[16,81,82,83,86,87,89,90,93],{},"It's possible (!) and now, I'll teach you how to do this introducing you to ",[30,84,85],{},"cdpath",".\nThe ",[30,88,85],{}," allows you to register folders that you can use relative ",[30,91,92],{},"cd"," into any subfolder of the following paths.",[16,95,96,97,100,101,104],{},"To use it, you need to append the follow code in ",[30,98,99],{},"~\u002F.bashrc"," (or ",[30,102,103],{},"~\u002F.zshrc"," if you are using zsh):",[23,106,109],{"className":107,"code":108,"language":28},[26],"cdpath=(~\u002FDevelopment ~\u002FDevelopment\u002Fgithub)\n",[30,110,108],{"__ignoreMap":32},[16,112,113,114,117,118,121],{},"Note: I use ",[30,115,116],{},"~\u002FDevelopment"," and ",[30,119,120],{},"~\u002FDevelopment\u002Fgithub"," because of my projects. You need to adapt these to your case.",[16,123,124,125,128,129,132,133,135,136,64],{},"Now, when I type ",[30,126,127],{},"cd laravel-framework"," from any directory, I'll go to ",[30,130,131],{},"\u002Fhome\u002Fdanilopinotti\u002FDevelopment\u002Fgithub\u002Flaravel-framework",", as well as if I type ",[30,134,70],{}," I'll be redirected to ",[30,137,78],{},[16,139,140,141,144,145,144,148,151],{},"Tip: If you are using zsh, when you type ",[30,142,143],{},"cd project"," -> ",[50,146,54],{"className":147},[50,53],[50,149,54],{"className":150},[50,53],", you can use a nice autocomplete feature.",{"title":32,"searchDepth":153,"depth":153,"links":154},2,[],"When we are using a Linux terminal, we frequently browse through folders. This article will introduce a configuration that will facilitate browsing through your most frequent folders.","md",null,"linux, zsh, bash, cdpath, zshrc, bashrc",{},true,"\u002Farticles\u002Fhow_to_easily_browse_through_frequent_folders","2022-02-27T21:00:00",{"title":5,"description":155},"articles\u002Fhow_to_easily_browse_through_frequent_folders","linux, terminal","8rCc59rww5OTz0NAQhv9cI8fNjln3XOaDMKXTZMFIgo",[168,172],{"title":169,"path":170,"stem":171,"children":-1},"Explicando operações Bitwise","\u002Farticles\u002Fexplicando_operadores_bitwise","articles\u002Fexplicando_operadores_bitwise",{"title":173,"path":174,"stem":175,"children":-1},"O Básico Sobre Expressões Regulares","\u002Farticles\u002Fo_basico_sobre_expressoes_regulares","articles\u002Fo_basico_sobre_expressoes_regulares",1775139777844]