aboutsummaryrefslogtreecommitdiffstats
path: root/shell/.profile
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2026-02-05 13:17:14 +0100
committerFilip Wandzio <contact@philw.dev>2026-02-05 13:17:14 +0100
commit3632aa92028a67bdff39340f1f58b27a5ec12c6e (patch)
treef61bd75f69d8173d41467cd2bed10497f31b9468 /shell/.profile
parenta44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.zip
Update shell filesHEADmaster
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