aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/seq.fish
diff options
context:
space:
mode:
authorGravatar lordlycastle <lordlycastle@hotmail.com>2015-12-10 14:20:46 +0000
committerGravatar lordlycastle <lordlycastle@hotmail.com>2015-12-10 14:20:46 +0000
commit96b3e1ce1bf8098d4b58b8695b1c2f5d7ba87f29 (patch)
treebcd52051b77c9d65a270a98a89502cbea4a6dc78 /share/completions/seq.fish
parent3868203c76e7570b59feeb9d69d5c98b0cd2c7c5 (diff)
Added OS X completions for open, and seq. Added missing stdout redirection to /dev/null when checking command's version.
Diffstat (limited to 'share/completions/seq.fish')
-rw-r--r--share/completions/seq.fish18
1 files changed, 12 insertions, 6 deletions
diff --git a/share/completions/seq.fish b/share/completions/seq.fish
index eaf54761..69760099 100644
--- a/share/completions/seq.fish
+++ b/share/completions/seq.fish
@@ -1,6 +1,12 @@
-
-complete -c seq -s f -l format -d 'Use printf style floating-point FORMAT'
-complete -c seq -s s -l separator -d 'Use STRING to separate numbers'
-complete -c seq -s w -l equal-width -d 'Equalize width with leading zeroes'
-complete -c seq -l help -d 'Display this help'
-complete -c seq -l version -d 'Output version information'
+if seq --version ^ /dev/null > /dev/null #GNU
+ complete -c seq -s f -l format -d 'Use printf style floating-point FORMAT'
+ complete -c seq -s s -l separator -d 'Use STRING to separate numbers'
+ complete -c seq -s w -l equal-width -d 'Equalize width with leading zeroes'
+ complete -c seq -l help -d 'Display this help'
+ complete -c seq -l version -d 'Output version information'
+else #OS X
+ complete -c seq -s f -d 'Use printf style floating-point FORMAT'
+ complete -c seq -s s -d 'Use STRING to separate numbers'
+ complete -c seq -s w -d 'Equalize width with leading zeroes'
+ complete -c seq -s t -d 'Use STRING to terminate sequence of numbers'
+end