summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-06-27 21:06:53 +0200
committerxengineering <me@xengineering.eu>2024-06-27 21:06:53 +0200
commit431beeea82cc043c85b0137ade2b1b35534c3035 (patch)
tree6c670d7d9ecfc8c9292ee2fffc1ab4dd2a579ca5
parentf1bb75196c361c09152dce84e310a3ea967cdd1f (diff)
downloaddotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.tar
dotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.tar.zst
dotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.zip
bash: Move constants to posix-shell/constants.sh
-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'