summaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-04-23 14:53:54 +0200
committerAhmed Abdelhalim <[email protected]>2026-04-23 14:53:54 +0200
commit172a05cf51505724f37ea8a03e4939540011c976 (patch)
tree21a100001b314653c156e12d25b0780ff0f9b5af /.bashrc
parent859dd28e2e00f0f9a020b760add653e3941bd0e4 (diff)
Update the PS1 to include distro name for dualboot
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc7
1 files changed, 6 insertions, 1 deletions
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