From 172a05cf51505724f37ea8a03e4939540011c976 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 23 Apr 2026 14:53:54 +0200 Subject: Update the PS1 to include distro name for dualboot --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 05fe90c..0eff92c 100644 --- a/.bashrc +++ b/.bashrc @@ -14,7 +14,12 @@ export HISTCONTROL=ignoredups:erasedups export EDITOR='vim' export TERM="xterm-256color" export GREP_OPTIONS="--color=auto" -export PS1='[\h]: \W \$ ' +if [ -f /etc/os-release ]; then + . /etc/os-release + export PS1="[$ID@\h]: \W \$ " +else + export PS1='[\h]: \W \$ ' +fi export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 -- cgit v1.2.3