From b167844ec6186d5ae9592b17637beb4893682a95 Mon Sep 17 00:00:00 2001 From: gospodin Date: Wed, 26 Oct 2022 22:24:34 +0300 Subject: [PATCH] added /etc/profile.d files --- dox/setup/autism.sh | 10 ++++++++++ dox/setup/xdg_runtime_dir.sh | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 dox/setup/autism.sh create mode 100644 dox/setup/xdg_runtime_dir.sh diff --git a/dox/setup/autism.sh b/dox/setup/autism.sh new file mode 100644 index 0000000..8497656 --- /dev/null +++ b/dox/setup/autism.sh @@ -0,0 +1,10 @@ +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_STATE_HOME="$HOME/.local/state" +export XDG_CACHE_HOME="$HOME/.cache" +export PATH="$HOME/.local/bin:$PATH" +export ENV="$XDG_CONFIG_HOME/shell" +export HISTFILE="$XDG_DATA_HOME/history" +export GNUPGHOME="$XDG_DATA_HOME"/gnupg +export GOPATH="$XDG_DATA_HOME"/go +PS1="\[\e]7;file://$(hostname)\$PWD\a\]${PS1}" diff --git a/dox/setup/xdg_runtime_dir.sh b/dox/setup/xdg_runtime_dir.sh new file mode 100644 index 0000000..ba1ddc0 --- /dev/null +++ b/dox/setup/xdg_runtime_dir.sh @@ -0,0 +1,7 @@ +if test -z "${XDG_RUNTIME_DIR}"; then + export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir + if ! test -d "${XDG_RUNTIME_DIR}"; then + mkdir "${XDG_RUNTIME_DIR}" + chmod 0700 "${XDG_RUNTIME_DIR}" + fi +fi -- 2.11.4.GIT