summaryrefslogtreecommitdiff
path: root/.bash_profile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-23 13:00:51 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-23 13:01:37 +0100
commitf640854d7cb7ac3acae74685860695a1b682491d (patch)
treeed53537254d327d2ca6314317771581c084839b1 /.bash_profile
parent573ba6c815f092012e8f2f13649e5d689cb74308 (diff)
bash: Prefer single brackets
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile6
1 files changed, 3 insertions, 3 deletions
diff --git a/.bash_profile b/.bash_profile
index 7df32b7..517c89b 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -1,13 +1,13 @@
-[[ -z "$XDG_RUNTIME_DIR" ]] && export XDG_RUNTIME_DIR="/run/user/$UID"
+[ -z "$XDG_RUNTIME_DIR" ] && export XDG_RUNTIME_DIR="/run/user/$UID"
-if [[ ! -d "$XDG_RUNTIME_DIR" ]]
+if [ ! -d "$XDG_RUNTIME_DIR" ]
then
mkdir "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
fi
readonly tty="$(tty)"
-[[ -f ~/.bashrc ]] && source ~/.bashrc
+[ -f ~/.bashrc ] && source ~/.bashrc
if [[ -z "$DISPLAY" && -z "$NIRI_LOADED" && "$tty" = /dev/tty1 ]]
then
export LIBSEAT_BACKEND=seatd