---
title: "Discussion on \"Hide the \"go\" folder from the home directory\" | Hashnode"
description: "Discussion on \"Hide the \"go\" folder from the home directory\". We're just gonna point the go path to a hidden folder in the home directory using zshrc variables. \nmkdir ~/.go\nnano ~/.zshrc\nadd this to the bottom\nGOPATH=/home/nathan/.go\nexport GOPATH\nPATH=$PATH:$GOPATH/bin\nsave it\nlog out and back in"
url: "https://hashnode.com/posts/hide-the-go-folder-from-the-home-directory/631cd8b73e8d6f3497ad3fec"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hide the "go" folder from the home directory](https://blog.gravityfargo.dev/hide-the-go-folder-from-the-home-directory?utm_source=hashnode&utm_medium=feed)

We're just gonna point the go path to a hidden folder in the home directory using zshrc variables. mkdir ~/.go nano ~/.zshrc add this to the bottom GOPATH=/home/nathan/.go export GOPATH PATH=$PATH:$GOPATH/bin save it log out and back in

Sep 10, 2022 · 1 min read · blog.gravityfargo.dev  
Read the article

-   [#archlinux](https://hashnode.com/tag/archlinux)
-   [#go](https://hashnode.com/tag/go)
-   [#zsh](https://hashnode.com/tag/zsh)

## Written by

[Nathan Price](https://hashnode.com/@gravityfargo)

@gravityfargo

  
[View profile](https://hashnode.com/@gravityfargo)

Just here to document stuff I do so I don't have to figure it out again later.

## Responses 1

Markdown supported · ⌘↵ to post

[Al - Naubit](https://hashnode.com/@naubit)

[Sep 10, 2022](https://hashnode.com/posts/hide-the-go-folder-from-the-home-directory/631cd8b73e8d6f3497ad3fec/comment/631cf00af73f4734bc0555f1)

Thanks, it was a good read, bookmarked, and followed!
