]> git.pld-linux.org Git - packages/bash.git/commitdiff
- well, lets set PS1 only in bashrc. No need to set it in profile
authorPaweł Gołaszewski <blues@pld-linux.org>
Thu, 26 May 2005 17:18:11 +0000 (17:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bashrc -> 1.14

bashrc

diff --git a/bashrc b/bashrc
index 9c52184b86f529be6855ae472d8edb057a44b44b..f6f8d8bf9bdf907b1840e2f9c033caaddb6e5a8b 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -3,17 +3,15 @@
 # System wide functions and aliases
 # Environment stuff goes in /etc/profile
 
-# If shell is run in environment without set PS1
-if [ ! "$PS1" ]; then
-       case $TERM in
-               gnome|xterm*|rxvt)
-                       PS1="\[\033]0;\u@\h: \w\007\][\u@\h \W]\\$ "
-                       ;;
-               *)
-                       PS1="[\u@\h \W]\\$ "
-                       ;;
-       esac
-fi
+# We set PS1 for each terminal:
+case $TERM in
+       gnome|xterm*|rxvt)
+               PS1="\[\033]0;\u@\h: \w\007\][\u@\h \W]\\$ "
+               ;;
+       *)
+               PS1="[\u@\h \W]\\$ "
+               ;;
+esac
 
 alias which="type -p"
 
This page took 0.104057 seconds and 4 git commands to generate.