[{"data":1,"prerenderedAt":122},["ShallowReactive",2],{"blog-post-ripgrep-fix-rg-command-not-found":3,"recent-posts":78},{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":16},"awbJoRIAACkAJT7y","ripgrep-fix-rg-command-not-found",null,"blog_posts","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axHxNRMAACoA2InR&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awbJoRIAACkAJT7y%22%29+%5D%5D",[],"2026-12-03T22:46:13+0000",[12],"ripgrep-how-to-fix-rg-command-not-found",[],"en-us",[],{"title":17,"date":23,"description":24,"image":29,"content":40},[18],{"type":19,"text":20,"spans":21,"direction":22},"heading1","Ripgrep: How to Fix \"rg Command Not Found\"",[],"ltr","2026-12-03",[25],{"type":26,"text":27,"spans":28,"direction":22},"heading2","Learn how to fix the rg: command not found error for ripgrep on Mac",[],{"dimensions":30,"alt":33,"copyright":6,"url":34,"id":35,"edit":36},{"width":31,"height":32},1280,720,"Ripgrep: How to Fix rg Command Not Found","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fhg6FIxSh73y6T04k_ripgrep-fix-rg-command-not-found.png?auto=format,compress","hg6FIxSh73y6T04k",{"x":37,"y":37,"zoom":38,"background":39},0,1,"transparent",[41,45,49,52,56,59,62,65,68,71,75],{"type":42,"text":43,"spans":44,"direction":22},"paragraph","The \u003Ccode>rg: command not found\u003C\u002Fcode> error means ripgrep either isn't installed, or your terminal can't find it.",[],{"type":46,"text":47,"spans":48,"direction":22},"heading3","Install ripgrep",[],{"type":42,"text":50,"spans":51,"direction":22},"On a Mac, the easiest way to install it is with Homebrew. Open your terminal and run:",[],{"type":53,"text":54,"spans":55,"direction":22},"preformatted","brew install ripgrep",[],{"type":42,"text":57,"spans":58,"direction":22},"Just note that the package is called \u003Ccode>ripgrep\u003C\u002Fcode>, but the command it installs is \u003Ccode>rg\u003C\u002Fcode>. Once it's done, run \u003Ccode>rg --version\u003C\u002Fcode> to make sure it works.",[],{"type":46,"text":60,"spans":61,"direction":22},"Fix your PATH",[],{"type":42,"text":63,"spans":64,"direction":22},"If you already installed it and still get the error, check where it lives with \u003Ccode>which rg\u003C\u002Fcode>. On Apple Silicon Macs, Homebrew installs to \u003Ccode>\u002Fopt\u002Fhomebrew\u002Fbin\u003C\u002Fcode>, and that folder has to be on your \u003Ccode>PATH\u003C\u002Fcode>. Add it to your \u003Ccode>~\u002F.zshrc\u003C\u002Fcode> and reload it:",[],{"type":53,"text":66,"spans":67,"direction":22},"echo 'export PATH=\"\u002Fopt\u002Fhomebrew\u002Fbin:$PATH\"' >> ~\u002F.zshrc\nsource ~\u002F.zshrc",[],{"type":42,"text":69,"spans":70,"direction":22},"You can also just close and reopen your terminal instead of running \u003Ccode>source\u003C\u002Fcode>.",[],{"type":72,"oembed":73},"embed",{"embed_url":74,"type":72},"",{"type":42,"text":76,"spans":77,"direction":22},"If you installed ripgrep with Cargo instead, add \u003Ccode>$HOME\u002F.cargo\u002Fbin\u003C\u002Fcode> to your \u003Ccode>PATH\u003C\u002Fcode> the same way.",[],{"results":79,"page":38,"results_per_page":120,"results_size":120,"total_results_size":121,"total_pages":38},[80,99,118],{"id":81,"uid":82,"url":6,"type":7,"href":83,"tags":84,"first_publication_date":10,"last_publication_date":10,"slugs":85,"linked_documents":87,"lang":14,"alternate_languages":88,"data":89},"awbJaBIAACsAJT6H","ripgrep-search-hidden-files","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axHxNRMAACoA2InR&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awbJaBIAACsAJT6H%22%29+%5D%5D",[],[86],"ripgrep-how-to-search-hidden-files",[],[],{"image":90,"title":96},{"dimensions":91,"alt":92,"copyright":6,"url":93,"id":94,"edit":95},{"width":31,"height":32},"Ripgrep: How to Search Hidden Files","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002FURhJw7MpuRYF7gWJ_ripgrep-search-hidden-files.png?auto=format,compress","URhJw7MpuRYF7gWJ",{"x":37,"y":37,"zoom":38,"background":39},[97],{"type":19,"text":92,"spans":98,"direction":22},[],{"id":100,"uid":101,"url":6,"type":7,"href":102,"tags":103,"first_publication_date":10,"last_publication_date":10,"slugs":104,"linked_documents":106,"lang":14,"alternate_languages":107,"data":108},"awbJhRIAACcAJT6_","ripgrep-show-line-numbers","https:\u002F\u002Fmarks-personal-website.cdn.prismic.io\u002Fapi\u002Fv2\u002Fdocuments\u002Fsearch?ref=axHxNRMAACoA2InR&q=%5B%5B%3Ad+%3D+at%28document.id%2C+%22awbJhRIAACcAJT6_%22%29+%5D%5D",[],[105],"ripgrep-how-to-show-line-numbers",[],[],{"image":109,"title":115},{"dimensions":110,"alt":111,"copyright":6,"url":112,"id":113,"edit":114},{"width":31,"height":32},"Ripgrep: How to Show Line Numbers","https:\u002F\u002Fimages.prismic.io\u002Fmarks-personal-website\u002Fs321hxB6Ig55dpAV_ripgrep-show-line-numbers.png?auto=format,compress","s321hxB6Ig55dpAV",{"x":37,"y":37,"zoom":38,"background":39},[116],{"type":19,"text":111,"spans":117,"direction":22},[],{"id":4,"uid":5,"url":6,"type":7,"href":8,"tags":9,"first_publication_date":10,"last_publication_date":10,"slugs":11,"linked_documents":13,"lang":14,"alternate_languages":15,"data":119},{"image":29,"title":17},3,127,1796337997308]