From: Iain Patterson Date: Thu, 29 Apr 2010 09:33:37 +0000 (+0100) Subject: Move __ps1 call from .bash_profile to ps1.bashrc. X-Git-Url: http://git.iain.cx/?p=profile.git;a=commitdiff_plain;h=eb32293ac0ef5fe79c5f240b0eaa4fc3f73f81ae Move __ps1 call from .bash_profile to ps1.bashrc. Don't force __ps1 to be called from .bash_profile. Anyone cloning the repository should be free to discard the prompt changes. --- diff --git a/.bash_profile b/.bash_profile index d2f4fc6..39276b9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -20,5 +20,4 @@ if tty -s || [ "${0:0:1}" = "-" -o "$1" = "force" ]; then LC_ALL=$lc_all unset lc_all nocg - __ps1 fi diff --git a/.profile.d/ps1.bashrc b/.profile.d/ps1.bashrc index b65e42d..aa750a0 100644 --- a/.profile.d/ps1.bashrc +++ b/.profile.d/ps1.bashrc @@ -1,5 +1,4 @@ #!bash Coloured prompts. -# To use, add a call to __ps1 in your .bash_profile file. # # The prompt comprises multiple parts, some of which may be hidden by unsetting # shell variables or using the ``prompt'' function. @@ -162,3 +161,5 @@ function prompt() { what="$(echo $2 | env LANG= LC_ALL= LC_CTYPE= tr '[:upper:]' '[:lower:]')" eval __ps1_$what=$action } + +__ps1