diff options
author | xengineering <me@xengineering.eu> | 2024-06-27 21:06:53 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-06-27 21:06:53 +0200 |
commit | 431beeea82cc043c85b0137ade2b1b35534c3035 (patch) | |
tree | 6c670d7d9ecfc8c9292ee2fffc1ab4dd2a579ca5 | |
parent | f1bb75196c361c09152dce84e310a3ea967cdd1f (diff) | |
download | dotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.tar dotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.tar.zst dotfiles-431beeea82cc043c85b0137ade2b1b35534c3035.zip |
bash: Move constants to posix-shell/constants.sh
-rw-r--r-- | .bashrc | 11 | ||||
-rw-r--r-- | posix-shell/constants.sh | 6 |
2 files changed, 9 insertions, 8 deletions
@@ -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' |