]> git.cameronkatri.com Git - dotfiles.git/commitdiff
Set PATH in .zprofile, dotgit not dotconfig
authorCameron Katri <me@cameronkatri.com>
Sat, 17 Jul 2021 18:20:31 +0000 (14:20 -0400)
committerCameron Katri <me@cameronkatri.com>
Sat, 17 Jul 2021 18:20:31 +0000 (14:20 -0400)
.zprofile [new file with mode: 0644]
.zshrc

diff --git a/.zprofile b/.zprofile
new file mode 100644 (file)
index 0000000..e43a344
--- /dev/null
+++ b/.zprofile
@@ -0,0 +1,5 @@
+export GOPATH=$HOME/Documents/go
+export PATH="$GOPATH/bin:$PATH"
+export PATH="/usr/local/llvm12/bin:$PATH"
+export PATH="/usr/local/libexec/apple/bin:$PATH"
+export PATH="$HOME/.local/bin:/usr/local/libexec/ccache:/opt/limd/bin:$PATH"
diff --git a/.zshrc b/.zshrc
index bb710962fd2687c39f9cf6f6ec660eab088c8794..bd9fa86c7e6cdd07f13cd34539b54c14fbca5ffd 100755 (executable)
--- a/.zshrc
+++ b/.zshrc
@@ -65,8 +65,6 @@ setxkbmap -option compose:rctrl
 
 export GPG_TTY=$(tty)
 
-export GOPATH=$HOME/Documents/go
-
 # Completion for kitty
 kitty + complete setup zsh | source /dev/stdin
 
@@ -94,11 +92,4 @@ fi
 
 export CVS_RSH=ssh
 
-alias dotconfig='git --git-dir=$HOME/Documents/dotfiles --work-tree=$HOME'
-
-# Set PATH after everthing else.
-export PATH="$GOPATH/bin:$PATH"
-export PATH="/usr/local/llvm12/bin:$PATH"
-export PATH="/usr/local/libexec/apple/bin:$PATH"
-export PATH="$HOME/.local/bin:/usr/local/libexec/ccache:/opt/limd/bin:$PATH"
-typeset -U path
+alias dotgit='git --git-dir=$HOME/Documents/dotfiles --work-tree=$HOME'