summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-02-22 23:09:45 +0100
committerRobin Krahl <me@robin-krahl.de>2018-02-22 23:09:45 +0100
commit548a4425c43528d1a65d5912fa73390bcf519dee (patch)
treef5471ed6eb7599a0e518b9b12cc7ac679f2fe776 /sh
parent63c61ba63a9dab45d0a0d5223c1fedfd92b1f085 (diff)
downloaddotfiles-548a4425c43528d1a65d5912fa73390bcf519dee.tar.gz
dotfiles-548a4425c43528d1a65d5912fa73390bcf519dee.tar.bz2
Restructure for compatibility with GNU stow
Diffstat (limited to 'sh')
-rw-r--r--sh/.config/sh/alias.sh2
-rw-r--r--sh/.config/sh/environment.sh20
2 files changed, 22 insertions, 0 deletions
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"