diff options
| author | Frank Terbeck <ft@bewatermyfriend.org> | 2016-05-01 15:27:32 +0200 |
|---|---|---|
| committer | Frank Terbeck <ft@bewatermyfriend.org> | 2016-05-02 00:11:06 +0200 |
| commit | 493c7e087981036ae2db67eb5b8e86db80b77917 (patch) | |
| tree | f39025e63efd7b82cbb064dac9549d8a2bc06649 /Completion/BSD/Command | |
| parent | unposted: _querybts: Fix positional arguments' description. (diff) | |
| download | zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.gz zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.bz2 zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.lz zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.xz zsh-493c7e087981036ae2db67eb5b8e86db80b77917.tar.zst 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')
| -rw-r--r-- | Completion/BSD/Command/_cu | 2 |
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:' |
