From b06e29e5c81c9fb5c45d42625e1039c9385fb229 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 24 Jan 2026 09:31:56 +0800 Subject: [PATCH] Improve .bash_profile --- .bash_profile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index 623a79a..19459b6 100644 --- a/.bash_profile +++ b/.bash_profile @@ -1,2 +1,3 @@ -[ `tty` == /dev/tty1 ] && exec startx +#!/bin/bash +[ "$(tty)" = "/dev/tty1" ] && exec startx source "$HOME/.bashrc"