From d91eded4887f8968ad820978af76941c2258c463 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 17 Jul 2025 16:43:14 +0200 Subject: [PATCH] bash: update rc profile: always try to set xdg dir needed for greetd-tui into bash --- dot-bash_profile | 6 +++++- dot-bashrc | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dot-bash_profile b/dot-bash_profile index 0001bf38..bddd0da4 100644 --- a/dot-bash_profile +++ b/dot-bash_profile @@ -1,6 +1,10 @@ #!/bin/bash -# /etc/skel/.bash_profile +# Ensure XDG_RUNTIME_DIR is set +if test -z "$XDG_RUNTIME_DIR"; then + export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX) +fi + export PATH="$PATH:$HOME/Applications:$HOME/go/bin:$HOME/.cargo/bin:/opt/android-sdk/platform-tools:$HOME/.local/bin" export EDITOR="kak" diff --git a/dot-bashrc b/dot-bashrc index 8d759537..a8c18bba 100644 --- a/dot-bashrc +++ b/dot-bashrc @@ -6,6 +6,7 @@ # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! +alias cdg='cd "$(git rev-parse --show-toplevel)"' alias df='/usr/bin/df -h --output=target,fstype,used,avail,pcent,source | sort -n' alias du='du -h' alias fastfetch='fastfetch -c "$HOME/.config/fastfetch/default.jsonc"' -- 2.51.2