From 3da86c05abb69d5ec8c01a613b75ea129e0c4402 Mon Sep 17 00:00:00 2001 From: LAN-TW Date: Wed, 21 Dec 2011 00:57:29 +0800 Subject: =?UTF-8?q?bash=5Finclude:=20=E6=9B=B4=E6=96=B0=E8=AA=AA=E6=98=8E?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E3=80=81=E6=96=87=E5=AD=97=E8=BD=89=20HTML?= =?UTF-8?q?=20=E9=80=8F=E9=81=8E=E8=AE=8A=E6=95=B8=E5=8A=A0=E5=85=A5?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash_include | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'bash_include') diff --git a/bash_include b/bash_include index 780bec1..95fb227 100644 --- a/bash_include +++ b/bash_include @@ -117,6 +117,8 @@ function convert_to_html () vim $i -c 'set background=dark' \ -c 'highlight PreProc ctermfg=darkcyan' \ -c "$BEFORE_CONVERT_TO_HTML" \ + -c "$BEFORE_CONVERT_TO_HTML1" \ + -c "$BEFORE_CONVERT_TO_HTML2" \ -c TOhtml \ -c :w \ -c :qa @@ -408,13 +410,13 @@ function help_function () bgcount bgdu <<< Group: Trash >>> - trash_mv [filename ...] [-- prefix ...] + trash_mv [filename ...] [-- sudo_prefix ...] trash_ls trash_cd [number] - trash_recover [number] [-- prefix ...] - trash_rm [all | numbers ...] [-- prefix ...] + trash_recover [number] [-- sudo_prefix ...] + trash_rm [all | numbers ...] [-- sudo_prefix ...] trash_count - trash_du [-- prefix ...] + trash_du [-- sudo_prefix ...] <<< Group: PATH Editor >>> path_editor ldpath_editor @@ -427,8 +429,8 @@ function help_function () check_dmesg seconds prehistory_backup check_important_files - backup_file filename ... [-- prefix ] - keep_sudo_credential + backup_file filename ... [-- sudo_prefix ] + keep_sudo_credential [seconds] x split_arguments [arguments ...] ENDHELPMSG } && return 0 @@ -437,6 +439,19 @@ ENDHELPMSG while [ "$1" ] do case "$1" in + "help_myself") + cat << ENDHELPMSG | print_iconv "UTF-8" "$current_charset" +help_myself + 一個測試命令列的小函式 +ENDHELPMSG + ;; + "help_function") + cat << ENDHELPMSG | print_iconv "UTF-8" "$current_charset" +help_function + 顯示 .bash_include 提供的額外函式清單 + 註:前方加上「x」符號者表示此為內部使用的函式,不宜直接使用 +ENDHELPMSG + ;; "bgrun") cat << ENDHELPMSG | print_iconv "UTF-8" "$current_charset" bgrun command [arguments ...] -- cgit v1.2.3