summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2009-11-20 03:05:54 +0000
committerClint Adams <clint@users.sourceforge.net>2009-11-20 03:05:54 +0000
commit2746eec722920c9af31e9a5962887ac31d7a4b33 (patch)
tree6f89e0b605cc6def3287c0cc51d5ab8201403de2
parentbe1e9c189d3791ab740bfd6901a904528c9362a7 (diff)
downloadzsh-2746eec722920c9af31e9a5962887ac31d7a4b33.tar.gz
zsh-2746eec722920c9af31e9a5962887ac31d7a4b33.tar.xz
zsh-2746eec722920c9af31e9a5962887ac31d7a4b33.zip
unposted: change bracket colors default to yellow when in an ssh session.
-rw-r--r--ChangeLog7
-rw-r--r--Functions/Prompts/prompt_clint_setup2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3022b6a19..f63fbf2a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-11-20  Clint Adams  <clint@zsh.org>
+
+	* unposted: Functions/Prompts/prompt_clint_setup: change bracket
+	colors default to yellow when in an ssh session.
+
 2009-11-19  Peter Stephenson  <pws@csr.com>
 
 	* Greg: 27416: Completion/Unix/Command/_subversion: repository
@@ -12359,5 +12364,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4816 $
+* $Revision: 1.4817 $
 *****************************************************
diff --git a/Functions/Prompts/prompt_clint_setup b/Functions/Prompts/prompt_clint_setup
index ba55ca5fc..822d3908f 100644
--- a/Functions/Prompts/prompt_clint_setup
+++ b/Functions/Prompts/prompt_clint_setup
@@ -17,7 +17,7 @@ prompt_clint_setup () {
 
   autoload -Uz vcs_info
 
-  pcc[1]=${1:-'red'}
+  pcc[1]=${1:-${${SSH_CLIENT+'yellow'}:-'red'}}
   pcc[2]=${2:-'cyan'}
   pcc[3]=${3:-'green'}
   pcc[4]=${4:-'yellow'}