aboutsummaryrefslogtreecommitdiffstats
path: root/shell/dash/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'shell/dash/.profile')
-rw-r--r--shell/dash/.profile27
1 files changed, 26 insertions, 1 deletions
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 @@
1. "$HOME/.cargo/env" 1export XDG_DATA_HOME="$HOME/.local/share"
2export XDG_CONFIG_HOME="$HOME/.config"
3export XDG_STATE_HOME="$HOME/.local/state"
4export XDG_CACHE_HOME="$HOME/.cache"
5
6if [ -z "$XDG_RUNTIME_DIR" ]; then
7 export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
8 mkdir -pm 0700 "$XDG_RUNTIME_DIR"
9fi
10
11export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
12touch "$XAUTHORITY"
13chmod 600 "$XAUTHORITY"
14
15if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
16 exec startx "$XDG_CONFIG_HOME/x/xinitrc"
17fi
18
19case "$-" in
20 *i*)
21 if [ -z "$BASH_VERSION" ]; then
22 exec bash --login
23 fi
24 ;;
25esac
26