From 9285ade8a89b4e0d226c4f38b7aa954cfe2c3e15 Mon Sep 17 00:00:00 2001 From: Greg Dietsche Date: Wed, 3 Apr 2013 17:35:48 -0500 Subject: [PATCH] ftp: add support for ftp and pftp Signed-off-by: Greg Dietsche --- share/completions/ftp.fish | 1 + share/completions/pftp.fish | 1 + share/functions/__fish_complete_ftp.fish | 14 ++++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 share/completions/ftp.fish create mode 100644 share/completions/pftp.fish create mode 100644 share/functions/__fish_complete_ftp.fish diff --git a/share/completions/ftp.fish b/share/completions/ftp.fish new file mode 100644 index 000000000..97c9e0795 --- /dev/null +++ b/share/completions/ftp.fish @@ -0,0 +1 @@ +__fish_complete_ftp ftp diff --git a/share/completions/pftp.fish b/share/completions/pftp.fish new file mode 100644 index 000000000..238e990d6 --- /dev/null +++ b/share/completions/pftp.fish @@ -0,0 +1 @@ +__fish_complete_ftp pftp diff --git a/share/functions/__fish_complete_ftp.fish b/share/functions/__fish_complete_ftp.fish new file mode 100644 index 000000000..39e78e57d --- /dev/null +++ b/share/functions/__fish_complete_ftp.fish @@ -0,0 +1,14 @@ +function __fish_complete_ftp -d 'Complete ftp, pftp' --argument-names ftp + complete -c $ftp -xa "(__fish_print_hostnames)" -d 'Hostname' + complete -c $ftp -s 4 -d 'Use only IPv4 to contact any host.' + complete -c $ftp -s 6 -d 'Use IPv6 only.' + complete -c $ftp -s p -d 'Use passive mode for data transfers.' + complete -c $ftp -s A -d 'Use active mode for data transfers.' + complete -c $ftp -s i -d 'Turn off interactive prompting during multiple file transfers.' + complete -c $ftp -s n -d 'Restrain ftp from attempting "auto-login" upon initial connection' + complete -c $ftp -s e -d 'Disable command editing and history support' + complete -c $ftp -s g -d 'Disable file name globbing' + complete -c $ftp -s m -d 'Do not explicitly bind data and control channels to same interface.' + complete -c $ftp -s v -d 'Verbose. Show all server responses and data transfer stats.' + complete -c $ftp -s d -d 'Enable debugging.' +end