aboutsummaryrefslogtreecommitdiffstats
path: root/bash_include
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2011-12-21 00:57:29 +0800
committerLAN-TW <lantw44@gmail.com>2011-12-21 00:57:29 +0800
commit3da86c05abb69d5ec8c01a613b75ea129e0c4402 (patch)
tree71c41bb00d90663697aec06ce82af44ad8331d08 /bash_include
parent205f1743e5162236ddb4911ac981fb7cc56f0363 (diff)
downloadconfigfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar.gz
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar.bz2
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar.lz
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar.xz
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.tar.zst
configfile-3da86c05abb69d5ec8c01a613b75ea129e0c4402.zip
bash_include: 更新說明文件、文字轉 HTML 透過變數加入指令bash_include-20111221
Diffstat (limited to 'bash_include')
-rw-r--r--bash_include27
1 files changed, 21 insertions, 6 deletions
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 ...]