Skip to content

Commit d3224b5

Browse files
committed
refactor(c): rename functions 🔡
1 parent f5219c5 commit d3224b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ readonly keep_eol quiet target_command
122122
# biz logic
123123
################################################################################
124124

125-
copy() {
125+
systemClip() {
126126
case "$(uname)" in
127127
Darwin*)
128128
pbcopy
@@ -136,21 +136,21 @@ copy() {
136136
esac
137137
}
138138

139-
catThenCopy() {
139+
bufferCopy() {
140140
local content
141141
content=$(cat)
142142
if $keep_eol; then
143143
printf '%s\n' "$content"
144144
else
145145
printf %s "$content"
146-
fi | copy
146+
fi | systemClip
147147
}
148148

149149
teeAndCopy() {
150150
if $quiet; then
151-
catThenCopy
151+
bufferCopy
152152
else
153-
tee >(catThenCopy)
153+
tee >(bufferCopy)
154154
fi
155155
}
156156

0 commit comments

Comments
 (0)