aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2012-04-04 20:42:07 +0800
committerLAN-TW <lantw44@gmail.com>2012-04-04 20:42:07 +0800
commite1c2900fdeb6a0cf530775d1a721438746555461 (patch)
tree615b87d472c7cc9fad6a0f4400d94063081d1c72 /bash_include
parentaa4b36edd84cdadfbbc32437e5a4032dd0aecd98 (diff)
downloadconfigfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar.gz
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar.bz2
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar.lz
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar.xz
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.tar.zst
configfile-e1c2900fdeb6a0cf530775d1a721438746555461.zip
bash_include: 加入 SSH 遠端連線標記bash_include-20120404
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include6
1 files changed, 6 insertions, 0 deletions
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`"