From b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Mon, 13 May 2013 21:18:24 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E8=A7=A3=E5=A3=93=E7=B8=AE=20zip=20?= =?UTF-8?q?=E6=AA=94=E6=A1=88=E6=99=82=E5=BF=BD=E7=95=A5=20Mac=20OS=20X=20?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E6=AA=94=E6=A1=88=20|=20vimrc:=20=E5=8A=A0?= =?UTF-8?q?=E5=A4=A7=E6=8C=87=E4=BB=A4=E6=AD=B7=E5=8F=B2=E7=B4=80=E9=8C=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 7 +++++++ vimrc | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bash_include b/bash_include index 12531df..5bb5daa 100644 --- a/bash_include +++ b/bash_include @@ -1165,6 +1165,12 @@ function set_terminal_size () stty cols $COLUMNS rows $LINES } +function unzip_nomac () +{ + unzip "$@" -x '__MACOSX/*' '*.DS_Store' + return $? +} + ########## Help ########## alias helpf='help_function' @@ -1248,6 +1254,7 @@ function help_function () set_console_title set_terminal_size varset variables ... + unzip_nomac filenames ... x createdir_askmode dirname x is_file_type filename type [-- sudo_prefix ...] x get_file_size filename [-- sudo_prefix ...] diff --git a/vimrc b/vimrc index 3686ac5..b3269e4 100644 --- a/vimrc +++ b/vimrc @@ -9,14 +9,15 @@ set bs=2 set ls=2 set ts=4 set sw=4 -set cindent +set cin set hls set ru set nocp +set hi=100 set tw=80 set cc=+1 set ve=block -set background=light +set bg=light syntax on highlight Comment ctermfg=darkcyan highlight Search term=reverse ctermbg=4 ctermfg=7 -- cgit v1.2.3