Skip to content

Commit 90a4b2c

Browse files
committedDec 31, 2016
Setup cpath for zsh
1 parent d1cb95d commit 90a4b2c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed
 

‎.zsh/exports.zsh

-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`
66

77
# Enable color in grep
88
export GREP_OPTIONS='--color=auto'
9-
10-
# Redefining PATH
11-
PATH=$GOPATH/bin:$PATH

‎.zsh/path.zsh

+8
Original file line numberDiff line numberDiff line change
@@ -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)
6+
7+
# Automatically change path if typed word is a directory
8+
setopt auto_cd

‎.zshrc

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ source ~/.zsh/history.zsh
33
source ~/.zsh/completion.zsh
44
source ~/.zsh/prompt.zsh
55
source ~/.zsh/aliases.zsh
6+
source ~/.zsh/path.zsh

0 commit comments

Comments
 (0)
Please sign in to comment.