From a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 Mon Sep 17 00:00:00 2001 From: Filip Wandzio Date: Sat, 24 Jan 2026 09:01:19 +0100 Subject: Update thesis --- shell/dash/.profile | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'shell/dash') diff --git a/shell/dash/.profile b/shell/dash/.profile index c2f3182..10cb98f 100644 --- a/shell/dash/.profile +++ b/shell/dash/.profile @@ -1 +1,26 @@ -. "$HOME/.cargo/env" +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" + +if [ -z "$XDG_RUNTIME_DIR" ]; then + export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" + mkdir -pm 0700 "$XDG_RUNTIME_DIR" +fi + +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" +touch "$XAUTHORITY" +chmod 600 "$XAUTHORITY" + +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec startx "$XDG_CONFIG_HOME/x/xinitrc" +fi + +case "$-" in + *i*) + if [ -z "$BASH_VERSION" ]; then + exec bash --login + fi + ;; +esac + -- cgit v1.2.3