summaryrefslogtreecommitdiff
path: root/zsh/profile
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-08-08 12:51:56 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-08-08 12:51:56 +0100
commit435dcf55bdbdea3bf6886a742ae4ae32af56ae23 (patch)
treeedff0cb03d26116e52292093338dc7b88e4f3fc8 /zsh/profile
parent42038e777643ef2a37ab4f062b3a26daafa876ea (diff)
zsh: Add paths to ${PATH} in profile instead of env
Diffstat (limited to 'zsh/profile')
-rw-r--r--zsh/profile12
1 files changed, 12 insertions, 0 deletions
diff --git a/zsh/profile b/zsh/profile
new file mode 100644
index 0000000..1861b82
--- /dev/null
+++ b/zsh/profile
@@ -0,0 +1,12 @@
+# -*- mode: shell-script -*-
+
+() {
+ local dir
+ for dir in ~/{.local/bin,bin} ${GOPATH:-~/go}/bin; do
+ [[ -d ${dir} ]] && path=(${dir} ${path})
+ done
+}
+
+source_if_exists dotfiles-${UNAME}/zsh/profile
+source_if_exists dotfiles-${DOMAIN}/zsh/profile
+source_if_exists dotfiles-${HOST}/zsh/profile