aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/completions/touch.fish
diff options
context:
space:
mode:
authorGravatar lordlycastle <lordlycastle@hotmail.com>2015-11-28 00:35:26 +0000
committerGravatar lordlycastle <lordlycastle@hotmail.com>2015-11-28 00:35:26 +0000
commit3868203c76e7570b59feeb9d69d5c98b0cd2c7c5 (patch)
treefa199a40d66c5b3ca1e5e1a8418642a03c07954a /share/completions/touch.fish
parent53fc9a4002494e2b1dd7d89f4c62398b64b96059 (diff)
Added completions for cat, cp, mktemp, stat, touch for OS X.
Diffstat (limited to 'share/completions/touch.fish')
-rw-r--r--share/completions/touch.fish33
1 files changed, 22 insertions, 11 deletions
diff --git a/share/completions/touch.fish b/share/completions/touch.fish
index 981581ac..62f54f16 100644
--- a/share/completions/touch.fish
+++ b/share/completions/touch.fish
@@ -1,11 +1,22 @@
-complete -c touch -s a --description "Change access time"
-complete -c touch -s B -l backward -x --description "Set date back"
-complete -c touch -s c -l no-create --description "Do not create file"
-complete -c touch -s d -l date -x --description "Set date"
-complete -c touch -s f -l forward -x --description "Set date forward"
-complete -c touch -s m --description "Change modification time"
-complete -c touch -s r -l reference --description "Use this files times"
-complete -c touch -s t --description "Set date"
-complete -c touch -l time -x --description "Set time"
-complete -c touch -l help --description "Display help and exit"
-complete -c touch -l version --description "Display version and exit"
+if touch --version ^ /dev/null # GNU
+ complete -c touch -s a --description "Change access time"
+ complete -c touch -s B -l backward -x --description "Set date back"
+ complete -c touch -s c -l no-create --description "Do not create file"
+ complete -c touch -s d -l date -x --description "Set date"
+ complete -c touch -s f -l forward -x --description "Set date forward"
+ complete -c touch -s m --description "Change modification time"
+ complete -c touch -s r -l reference --description "Use this files times"
+ complete -c touch -s t --description "Set date"
+ complete -c touch -l time -x --description "Set time"
+ complete -c touch -l help --description "Display help and exit"
+ complete -c touch -l version --description "Display version and exit"
+else # OS X
+ complete -c touch -s A -d "Adjust access and modification time stamps by specified VALUE" -r
+ complete -c touch -s a -d "Change access time of file"
+ complete -c touch -s c -d "Don't create file if it doesn't exist"
+ complete -c touch -s f -d "Attempt to force the update, even when permission don't permit"
+ complete -c touch -s h -d "Change times of the symlink ranther than the file. Implies `-c'"
+ complete -c touch -s m -d "Change modification time of file"
+ complete -c touch -s r -d "Use access and modifications times from specified file rather than current time of day"
+ complete -c touch -s t -d "Change access and modifications times to specified file rather than current time of day"
+end \ No newline at end of file