Skip to content

Commit 54954eb

Browse files
committed
Paths.
1 parent c2c3e05 commit 54954eb

File tree

4 files changed

+36
-13
lines changed

4 files changed

+36
-13
lines changed

zsh/local/area51.zsh

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
# No shame; Just aliens, UFOs, cows, and crazy nonsense shenanigans.
66

77
# alias seshh='~/Code/Prs/sesh/sesh'
8-
# export GOPATH=$HOME/go
9-
# PATH=~/go/bin:$PATH
108

119
# Stuff from oh-my-zsh
1210
# Changing/making/removing directory

zsh/local/go.zsh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ------------------------------------------------------------------------------
2+
# Paths for go development
3+
# ------------------------------------------------------------------------------
4+
5+
# Note: We can check all of Go's env vars by running `go env`
6+
7+
# Note: Relying on GOPATH isn't recommended for modern go development anymore
8+
# Since Go 1.11, use go modules conventions instead!
9+
# export GOPATH=$HOME/.go
10+
11+
# Make GOBIN hidden, for utils like errcheck, etc.
12+
export GOBIN=$HOME/.go/bin
13+
14+
# Ensure GOMODCACHE also gets stored in custom .go dir
15+
export GOMODCACHE=$HOME/.go/pkg/mod
16+
17+
# Add our custom GOBIN to runtime path
18+
PATH=$HOME/.go/bin:$PATH
19+
20+
21+
# ------------------------------------------------------------------------------
22+
# Aliases and functions for go development
23+
# ------------------------------------------------------------------------------
24+
25+
# alias gt="go test ./..."

zsh/local/web-dev.zsh

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# ------------------------------------------------------------------------------
2+
# Paths for web development
3+
# ------------------------------------------------------------------------------
4+
5+
PATH=./node_modules/.bin:$PATH
6+
PATH=~/.composer/vendor/bin:$PATH
7+
PATH=./vendor/bin:$PATH
8+
9+
110
# ------------------------------------------------------------------------------
211
# Aliases and functions for web development
312
# ------------------------------------------------------------------------------

zsh/zshrc

+2-11
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99

1010
# ------------------------------------------------------------------------------
11-
# Global
11+
# Dotfiles
1212
# ------------------------------------------------------------------------------
1313

1414
DOTFILES="$HOME/.dotfiles"
15+
PATH=$DOTFILES/bin:$PATH
1516

1617

1718
# ------------------------------------------------------------------------------
@@ -42,16 +43,6 @@ antidote load $DOTFILES/zsh/bundles
4243
eval "$(starship init zsh)"
4344

4445

45-
# ------------------------------------------------------------------------------
46-
# Paths
47-
# ------------------------------------------------------------------------------
48-
49-
PATH=$DOTFILES/bin:$PATH
50-
PATH=./node_modules/.bin:$PATH
51-
PATH=~/.composer/vendor/bin:$PATH
52-
PATH=./vendor/bin:$PATH
53-
54-
5546
# ------------------------------------------------------------------------------
5647
# Helpers
5748
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)