From ddd97930b8ea1cd105ddc1218ceb8237191cc573 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Thu, 11 Jul 2013 15:36:57 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E6=94=AF=E6=8F=B4=20GNU=20screen=20>?= =?UTF-8?q?=3D=204.1.0=20=E4=BB=A5=E5=8F=8A=20screen=20256=20=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bash_include') diff --git a/bash_include b/bash_include index 86777ea..36cb8a8 100644 --- a/bash_include +++ b/bash_include @@ -98,6 +98,7 @@ alias savetty='default_tty_setting=`stty -g`' alias resetty='stty $default_tty_setting' alias vimhtml='vim -c "set ts=2" -c "set sw=2"' +alias screen256='screen -T screen-256color' # Functions @@ -1381,6 +1382,15 @@ shopt -s checkhash shopt -s cmdhist shopt -s mailwarn +[ "$interactive_shell" ] && { + if [ "$WINDOW" ] && type screen &> /dev/null; then + if [[ "`screen --version`" == *4.01* ]]; then + echo "Setting options for GNU screen 4.1.0" + screen -X cjkwidth off + fi + fi +} + [ "$interactive_shell" ] && { echo "Done" if [ "$UID" = "0" ] || [ "$EUID" = "0" ] -- cgit v1.2.3