]> Freerunner's - dotfiles.git/commitdiff
bash: update rc
authorAndre Ramnitz <tux.rising@gmail.com>
Thu, 17 Jul 2025 14:43:14 +0000 (16:43 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Thu, 17 Jul 2025 14:44:54 +0000 (16:44 +0200)
profile: always try to set xdg dir

needed for greetd-tui into bash

dot-bash_profile
dot-bashrc

index 0001bf38e325d22043a796a69fa34c1c62511359..bddd0da4ec37609a30e04cc2b37133b3bb88163e 100644 (file)
@@ -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"
index 8d7595372c19e3d37038cfaf79e13774adc52961..a8c18bba4694c928e08c7428aa9aabb45153b061 100644 (file)
@@ -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"'