summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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