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