aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-05-13 21:18:24 +0800
committerLAN-TW <lantw44@gmail.com>2013-05-13 21:18:24 +0800
commitb9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d (patch)
tree9ba04dc9db90adb1b91dfed8439de7538cb323a6 /bash_include
parent5db6f0c79327e5795bdd6072347f1a4b329b6333 (diff)
downloadconfigfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar.gz
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar.bz2
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar.lz
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar.xz
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.tar.zst
configfile-b9765fd28dd16cbb3b0554fc8ca9ef8b0fdbbb8d.zip
bash_include: 解壓縮 zip 檔案時忽略 Mac OS X 特殊檔案 | vimrc: 加大指令歷史紀錄vimrc-20130513bash_include-20130513
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include7
1 files changed, 7 insertions, 0 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 ...]