diff options
author | lordlycastle <lordlycastle@hotmail.com> | 2015-11-28 00:35:26 +0000 |
---|---|---|
committer | lordlycastle <lordlycastle@hotmail.com> | 2015-11-28 00:35:26 +0000 |
commit | 3868203c76e7570b59feeb9d69d5c98b0cd2c7c5 (patch) | |
tree | fa199a40d66c5b3ca1e5e1a8418642a03c07954a /share/completions/cat.fish | |
parent | 53fc9a4002494e2b1dd7d89f4c62398b64b96059 (diff) |
Added completions for cat, cp, mktemp, stat, touch for OS X.
Diffstat (limited to 'share/completions/cat.fish')
-rw-r--r-- | share/completions/cat.fish | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/share/completions/cat.fish b/share/completions/cat.fish index 30cf589f..b82ac4e0 100644 --- a/share/completions/cat.fish +++ b/share/completions/cat.fish @@ -1,12 +1,21 @@ -complete -c cat -s A -l show-all --description "Escape all non-printing characters" -complete -c cat -s b -l number-nonblank --description "Number nonblank lines" -complete -c cat -s e --description "Escape non-printing characters except tab" -complete -c cat -s E -l show-ends --description "Display \$ at end of line" -complete -c cat -s n -l number --description "Number all lines" -complete -c cat -s s -l squeeze-blank --description "Never more than single blank line" -complete -c cat -s t --description "Escape non-printing characters except newline" -complete -c cat -s T -l show-tabs --description "Escape tab" -complete -c cat -s v --description "Escape non-printing except newline and tab" -complete -c cat -l help --description "Display help and exit" -complete -c cat -l version --description "Display version and exit" - +if cat --version ^ /dev/null # GNU + complete -c cat -s A -l show-all --description "Escape all non-printing characters" + complete -c cat -s b -l number-nonblank --description "Number nonblank lines" + complete -c cat -s e --description "Escape non-printing characters except tab" + complete -c cat -s E -l show-ends --description "Display \$ at end of line" + complete -c cat -s n -l number --description "Number all lines" + complete -c cat -s s -l squeeze-blank --description "Never more than single blank line" + complete -c cat -s t --description "Escape non-printing characters except newline" + complete -c cat -s T -l show-tabs --description "Escape tab" + complete -c cat -s v --description "Escape non-printing except newline and tab" + complete -c cat -l help --description "Display help and exit" + complete -c cat -l version --description "Display version and exit" +else # OS X + complete -c cat -s b -d "Number non-blank lines" + complete -c cat -s e -d "Display non-printing characters, and `\$' at the end of each line" + complete -c cat -s n -d "Number all lines" + complete -c cat -s s -d "Single spaced output by squeezing adjacent empty lines" + complete -c cat -s t -d "Display non-printing characters, and tab characters as `^I'" + complete -c cat -s u -d "Disable output buffering" + complete -c cat -s v -d "Display non-printing characters so they're visible." +end
\ No newline at end of file |