We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1cb95d commit 90a4b2cCopy full SHA for 90a4b2c
.zsh/exports.zsh
@@ -6,6 +6,3 @@ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
6
7
# Enable color in grep
8
export GREP_OPTIONS='--color=auto'
9
-
10
-# Redefining PATH
11
-PATH=$GOPATH/bin:$PATH
.zsh/path.zsh
@@ -0,0 +1,8 @@
1
+# Include binaries built by Golang in the search
2
+path+=($GOPATH/bin)
3
+
4
+# Include directories from GOPATH in search when changing path
5
+cdpath+=($GOPATH/src/golang.org $GOPATH/src/github.com $GOPATH/src/bitbucket.org)
+# Automatically change path if typed word is a directory
+setopt auto_cd
.zshrc
@@ -3,3 +3,4 @@ source ~/.zsh/history.zsh
source ~/.zsh/completion.zsh
source ~/.zsh/prompt.zsh
source ~/.zsh/aliases.zsh
+source ~/.zsh/path.zsh
0 commit comments