From 548a4425c43528d1a65d5912fa73390bcf519dee Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Thu, 22 Feb 2018 23:09:45 +0100 Subject: Restructure for compatibility with GNU stow --- sh/.config/sh/alias.sh | 2 ++ sh/.config/sh/environment.sh | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 sh/.config/sh/alias.sh create mode 100644 sh/.config/sh/environment.sh (limited to 'sh') diff --git a/sh/.config/sh/alias.sh b/sh/.config/sh/alias.sh new file mode 100644 index 0000000..d802a19 --- /dev/null +++ b/sh/.config/sh/alias.sh @@ -0,0 +1,2 @@ +alias irssi="irssi --home=${XDG_CONFIG_HOME}/irssi" +alias pandoc="pandoc --data-dir=${XDG_DATA_HOME}/pandoc" diff --git a/sh/.config/sh/environment.sh b/sh/.config/sh/environment.sh new file mode 100644 index 0000000..3d02b22 --- /dev/null +++ b/sh/.config/sh/environment.sh @@ -0,0 +1,20 @@ +export XDG_CONFIG_HOME="${HOME}/.config" +export XDG_CACHE_HOME="${HOME}/.cache" +export XDG_DATA_HOME="${HOME}/.local/share" + +if [[ -d "${HOME}/bin" ]] +then + export PATH="${PATH}:${HOME}/bin" +fi + +export CARGO_HOME="${XDG_DATA_HOME}/cargo" +export ELINKS_CONFDIR="${XDG_CONFIG_HOME}/elinks" +export GIMP2_DIRECTORY="${XDG_CONFIG_HOME}/gimp" +export HISTFILE="${XDG_CACHE_HOME}/sh/history" +export LESSHISTFILE="${XDG_CACHE_HOME}/less/history" +export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey" +export NOTMUCH_CONFIG="${XDG_CONFIG_HOME}/notmuch/config" +export NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/config" +export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/pass" +export XAUTHORITY="${XDG_RUNTIME_DIR}/Xauthority" +export XINITRC="${XDG_CONFIG_HOME}/X11/xinitrc" -- cgit v1.2.3