summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-30 10:53:56 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-30 10:53:56 +0100
commit3727fca950b95eafdeaceca79cef387a8f6fc446 (patch)
treed2d178b02857ec5f0ac93d508269dd26c1315b38 /etc
parent06ad3038d8f4be2b8ffa0143b93bc1908ef36a0f (diff)
Added quick&dirty sort completion
Diffstat (limited to 'etc')
-rw-r--r--etc/completions/_sort29
1 files changed, 29 insertions, 0 deletions
diff --git a/etc/completions/_sort b/etc/completions/_sort
new file mode 100644
index 0000000..8c49a26
--- /dev/null
+++ b/etc/completions/_sort
@@ -0,0 +1,29 @@
+#compdef sort
+
+typeset -a arguments
+
+arguments=(
+ '-b[ignore leading blanks]'
+ '-d[dictionary/alphabetical sort]'
+ '-f[ignore case]'
+ '-g[general numeric sort]'
+ '-i[ignore non-printable characters]'
+ '-M[sort by month]'
+ '-n[string numeric sort]'
+ '-R[random sort]'
+ '--random-source=-[entropy source]:file:_files'
+ '-r[reverse sort]'
+ '-c[check if input is sorted]'
+ '-C[quietly check if input is sorted]'
+ '-k'
+ '-m[merge sorted files]'
+ '-o[output file]:output file:_files'
+ '-s[stabilize sort]'
+ '-S[set buffer size]:buffer size'
+ '-t[set field separator]:field seprarator'
+ '-T[set temporary directory]:tmpdir:_path_files -/'
+ '-u[unique output]'
+ '-z[end lines with 0 byte]'
+)
+
+_arguments -s $arguments