From 431beeea82cc043c85b0137ade2b1b35534c3035 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 27 Jun 2024 21:06:53 +0200 Subject: bash: Move constants to posix-shell/constants.sh --- .bashrc | 11 +++-------- posix-shell/constants.sh | 6 ++++++ 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 posix-shell/constants.sh 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' -- cgit v1.2.3-70-g09d2