From b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Mon, 13 May 2013 21:18:24 +0800 Subject: bash_include: 解壓縮 zip 檔案時忽略 Mac OS X 特殊檔案 | vimrc: 加大指令歷史紀錄 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bash_include') 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 ...] -- cgit