summary refs log tree commit diff
path: root/Completion/BSD/Command/_cu
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2016-05-01 15:27:32 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2016-05-02 00:11:06 +0200
commit493c7e087981036ae2db67eb5b8e86db80b77917 (patch)
treef39025e63efd7b82cbb064dac9549d8a2bc06649 /Completion/BSD/Command/_cu
parentbb5c8f16bf774c59f9e04a2ae39d7cb5b6fb38f6 (diff)
downloadzsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.gz
zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.xz
zsh-493c7e087981036ae2db67eb5b8e86db80b77917.zip
38388: Refactor baud rate completion
This adds a new helper function _baudrate and uses it in place of
private solutions in various existing completions.
Diffstat (limited to 'Completion/BSD/Command/_cu')
-rw-r--r--Completion/BSD/Command/_cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/BSD/Command/_cu b/Completion/BSD/Command/_cu
index bdd579519..4b9f25d1f 100644
--- a/Completion/BSD/Command/_cu
+++ b/Completion/BSD/Command/_cu
@@ -3,5 +3,5 @@
 _arguments -s -A '-*' \
   '-d[do not block waiting for a carrier to be detected]' \
   '-l[line to use]:line:(/dev/(cuaU#<->|ttyS<->)(N%c))' \
-  '-s[line speed]:line speed:(75 110 300 1200 2400 4800 9600 19200 38400 57600 115200)' \
+  '-s[line speed]:line speed:_baudrate -d "line speed"' \
   '(-*)1:host:'