Add better separators for cut and paste

This commit is contained in:
rwxrob 2021-08-10 18:59:04 -04:00
parent 4d5a3bc318
commit fccefe4df2
No known key found for this signature in database
GPG Key ID: 1CCACEDD2F65578E
1 changed files with 5 additions and 2 deletions

View File

@ -97,6 +97,8 @@ command__hidden() {
echo "would run _hidden: $*"
}
# ------------------ builtin commands and functions ------------------
help[usage]='Displays a summary of usage.'
command_usage() {
@ -178,8 +180,6 @@ command_readme() {
done < <(printf "%s\n" "${!help[@]}" | LC_COLLATE=C sort)
}
# --------------------- completion and delegation --------------------
# (better than . <(foo bloated_completion) in .bashrc)
_help_title() {
_filter "$@" && return $?;
@ -210,6 +210,9 @@ _buffer() {
"${FUNCNAME[1]}" "$(</dev/stdin)"
}
# --------------------- completion and delegation --------------------
# (better than . <(foo bloated_completion) in .bashrc)
while IFS= read -r line; do
[[ $line =~ ^declare\ -f\ command_ ]] || continue
COMMANDS+=( "${line##declare -f command_}" )