From e1c2900fdeb6a0cf530775d1a721438746555461 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Wed, 4 Apr 2012 20:42:07 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E5=8A=A0=E5=85=A5=20SSH=20=E9=81=A0?= =?UTF-8?q?=E7=AB=AF=E9=80=A3=E7=B7=9A=E6=A8=99=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bash_include b/bash_include index 187ae89..0e2d5bd 100644 --- a/bash_include +++ b/bash_include @@ -16,6 +16,12 @@ if [[ "$-" == *i* ]] ; then interactive_shell=1; fi colorprompting='\[\e[1;31m\]\!\[\e[m\] [\[\e[1;33m\]\u\[\e[m\]@\[\e[1;32m\]\h\[\e[m\] \[\e[1;36m\]\w\[\e[m\]]\$ ' nocolorprompting='\! [\u@\h \w]\$ ' +if [ "$SSH_CONNECTION" ] +then + colorprompting="\[\e[1;44m\]*\[\e[m\]$colorprompting" + nocolorprompting="*$nocolorprompting" +fi + historycountfile="$HOME/.bash_history.count" historybackupfile="$HOME/.bash_history.bak" bgrunfiledir="$HOME/tmp/bgrun-`whoami`" -- cgit v1.2.3