From 95582ef76b7a7314e70b93babef58a7a61f7d00b Mon Sep 17 00:00:00 2001 From: exploide Date: Wed, 13 Jul 2022 21:51:46 +0800 Subject: [PATCH] scp completions: added new options (cherry picked from commit 459bbe208d8bc7578c77882821b0a116b95de913) --- CHANGELOG.rst | 1 + share/completions/scp.fish | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b2781824a..71462e28a 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -5,6 +5,7 @@ This release of fish introduces the following small enhancements: - Cursor shaping for Vi mode is enabled by default in tmux, and will be used if the outer terminal is capable (:issue:`8981`). - ``printf`` returns a better error when used with arguments interpreted as octal numbers (:issue:`9035`). +- Improvements to some completions. This release also fixes a number of problems identified in fish 3.5.0. diff --git a/share/completions/scp.fish b/share/completions/scp.fish index c166d4401..b9b9d3da6 100644 --- a/share/completions/scp.fish +++ b/share/completions/scp.fish @@ -59,9 +59,12 @@ complete -c scp -d "Remote Path" -f -n "commandline -ct | string match -e ':'" - " complete -c scp -s 3 -d "Copies between two remote hosts are transferred through the local host" complete -c scp -s B -d "Batch mode" +complete -c scp -s D -x -d "Connect directly to a local SFTP server" complete -c scp -s l -x -d "Bandwidth limit" +complete -c scp -s O -d "Use original SCP protocol instead of SFTP" complete -c scp -s P -x -d Port complete -c scp -s p -d "Preserves modification times, access times, and modes from the original file" +complete -c scp -s R -d "Copies between two remote hosts are performed by executing scp on the origin host" complete -c scp -s r -d "Recursively copy" complete -c scp -s S -d "Encryption program" complete -c scp -s T -d "Disable strict filename checking"