mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 02:48:15 +00:00
[shell-common] Reorganise exports
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
7
shell-common/.config/shell-common/99_go.sh
Normal file
7
shell-common/.config/shell-common/99_go.sh
Normal 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
|
||||||
2
shell-common/.config/shell-common/99_python.sh
Normal file
2
shell-common/.config/shell-common/99_python.sh
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Python stuff
|
||||||
|
export POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||||
4
shell-common/.config/shell-common/99_rust.sh
Normal file
4
shell-common/.config/shell-common/99_rust.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# Rust stuff
|
||||||
|
if [ -f $HOME/.cargo/env ]; then
|
||||||
|
source $HOME/.cargo/env
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user