summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
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"