[shell-common] Reorganise exports

This commit is contained in:
Andrew Williams
2026-01-07 16:06:59 +00:00
parent d524c3fa78
commit e6c42d36ae
4 changed files with 14 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
# shellcheck shell=bash # shellcheck shell=bash
# User specific environment
# XDG Base Directories # XDG Base Directories
# Empty variables would be set to defaults, but we define them explicitly
export XDG_BIN_HOME="$HOME/.local/bin" export XDG_BIN_HOME="$HOME/.local/bin"
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
@@ -26,22 +26,6 @@ for editor in "${editor_preferences[@]}"; do
fi fi
done done
# Go stuff
export GOPATH=$XDG_DATA_HOME/go/
export PATH=${GOPATH}bin:$PATH
if [ -z ${GOROOT+x} ] && [ -d /usr/local/go ]; then
export GOROOT=/usr/local/go/
export PATH=$PATH:$GOROOT/bin
fi
# Python stuff
export POETRY_VIRTUALENVS_IN_PROJECT=true
# Rust stuff
if [ -f $HOME/.cargo/env ]; then
source $HOME/.cargo/env
fi
# https://github.com/oz/tz # https://github.com/oz/tz
if [ -x "$(command -v tz)" ]; then if [ -x "$(command -v tz)" ]; then
export TZ_LIST="Europe/Dublin,Portwest HQ;America/New_York,WDW;America/Los_Angeles,DLR;Europe/Paris,DLP" export TZ_LIST="Europe/Dublin,Portwest HQ;America/New_York,WDW;America/Los_Angeles,DLR;Europe/Paris,DLP"

View File

@@ -0,0 +1,7 @@
# Go stuff
export GOPATH=$XDG_DATA_HOME/go/
export PATH=${GOPATH}bin:$PATH
if [ -z ${GOROOT+x} ] && [ -d /usr/local/go ]; then
export GOROOT=/usr/local/go/
export PATH=$PATH:$GOROOT/bin
fi

View File

@@ -0,0 +1,2 @@
# Python stuff
export POETRY_VIRTUALENVS_IN_PROJECT=true

View File

@@ -0,0 +1,4 @@
# Rust stuff
if [ -f $HOME/.cargo/env ]; then
source $HOME/.cargo/env
fi