removed windows and linux split subdir
This commit is contained in:
parent
83dda10fa8
commit
065b982734
280 changed files with 9053 additions and 426 deletions
15
.antidote/functions/__antidote_collect_input
Normal file
15
.antidote/functions/__antidote_collect_input
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/zsh
|
||||
|
||||
### Collect <redirected or piped| input
|
||||
#function __antidote_collect_input {
|
||||
local -a input=()
|
||||
if (( $# > 0 )); then
|
||||
input=("${(s.\n.)${@}}")
|
||||
elif [[ ! -t 0 ]]; then
|
||||
local data
|
||||
while IFS= read -r data || [[ -n "$data" ]]; do
|
||||
input+=("$data")
|
||||
done
|
||||
fi
|
||||
printf '%s\n' "${input[@]}"
|
||||
#}
|
||||
Loading…
Add table
Add a link
Reference in a new issue