diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-04-22 00:43:37 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-04-22 00:43:37 +0800 |
commit | df5b5b4d1e028464abe4e67b8fdecde900a61ba0 (patch) | |
tree | d21179197c255316ef244f7938411d0b52d7c706 | |
parent | 4e2b6dab5c7f5c93a9bc681ffa36fffc48034edc (diff) | |
download | configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar.gz configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar.bz2 configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar.lz configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar.xz configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.tar.zst configfile-df5b5b4d1e028464abe4e67b8fdecde900a61ba0.zip |
bash_include: GNU screen 4.02 準備要 release 了bash_include-20140422
-rw-r--r-- | bash_include | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash_include b/bash_include index 8c64fdf..67cea7e 100644 --- a/bash_include +++ b/bash_include @@ -2021,8 +2021,8 @@ ulimit -S -c unlimited 2> /dev/null [ "$interactive_shell" ] && { if [ "$WINDOW" ] && type screen &> /dev/null; then - if [[ "`screen --version`" == *4.01* ]]; then - echo "Setting options for GNU screen 4.1.0" + if [ "`screen --version | sed 's/^Screen version 4\.\([0-9]*\).*$/\1/'`" -ge "1" ]; then + echo "Setting options for GNU screen >= 4.1.0" screen -X cjkwidth off fi fi |