summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc11
-rw-r--r--posix-shell/constants.sh6
2 files changed, 9 insertions, 8 deletions
diff --git a/.bashrc b/.bashrc
index c5bfd8b..57b8f36 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,19 +5,14 @@
[[ $- != *i* ]] && return
-# variables
-export GOPATH=$HOME/go
-export EDITOR=nvim
+# shellcheck source=posix-shell/constants.sh
+. "${HOME}/.config/posix-shell/constants.sh"
+
# shellcheck source=posix-shell/aliases.sh
. "${HOME}/.config/posix-shell/aliases.sh"
-# extend PATH by custom scripts (location based on XDG)
-# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
-PATH=~/.local/bin:$PATH
-
-
# shellcheck source=posix-shell/programs.sh
. "${HOME}/.config/posix-shell/programs.sh"
diff --git a/posix-shell/constants.sh b/posix-shell/constants.sh
new file mode 100644
index 0000000..2b29fa3
--- /dev/null
+++ b/posix-shell/constants.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+
+export PATH="${HOME}/.local/bin:${PATH}"
+export GOPATH="${HOME}/go"
+export EDITOR='nvim'