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