From: Andre Ramnitz Date: Thu, 17 Jul 2025 14:43:14 +0000 (+0200) Subject: bash: update rc X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=d91eded4887f8968ad820978af76941c2258c463;p=dotfiles.git bash: update rc profile: always try to set xdg dir needed for greetd-tui into bash --- 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"'