diff options
| author | Filip Wandzio <contact@philw.dev> | 2026-01-24 09:01:19 +0100 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2026-01-24 09:01:19 +0100 |
| commit | a44dde93388f1c5c9ed6ea73d5e9ee7849e2d475 (patch) | |
| tree | b70fc06203133bebf4a51820f48bf8effa2ee9c2 /shell/dash | |
| parent | b34e284c6225e72fe7d612f8913d0a35b9d7ea17 (diff) | |
| download | dotfiles-master.tar.gz dotfiles-master.zip | |
Diffstat (limited to '')
| -rw-r--r-- | shell/dash/.profile | 27 |
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" | 1 | export XDG_DATA_HOME="$HOME/.local/share" |
| 2 | export XDG_CONFIG_HOME="$HOME/.config" | ||
| 3 | export XDG_STATE_HOME="$HOME/.local/state" | ||
| 4 | export XDG_CACHE_HOME="$HOME/.cache" | ||
| 5 | |||
| 6 | if [ -z "$XDG_RUNTIME_DIR" ]; then | ||
| 7 | export XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir" | ||
| 8 | mkdir -pm 0700 "$XDG_RUNTIME_DIR" | ||
| 9 | fi | ||
| 10 | |||
| 11 | export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" | ||
| 12 | touch "$XAUTHORITY" | ||
| 13 | chmod 600 "$XAUTHORITY" | ||
| 14 | |||
| 15 | if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then | ||
| 16 | exec startx "$XDG_CONFIG_HOME/x/xinitrc" | ||
| 17 | fi | ||
| 18 | |||
| 19 | case "$-" in | ||
| 20 | *i*) | ||
| 21 | if [ -z "$BASH_VERSION" ]; then | ||
| 22 | exec bash --login | ||
| 23 | fi | ||
| 24 | ;; | ||
| 25 | esac | ||
| 26 | |||
