From be9b8829d06d6079dd151a0eba14bfcd2cfc96ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BE=E5=9C=B0=20=E5=B8=8C=E7=95=99=E8=80=B6?= <65301509+KiruyaMomochi@users.noreply.github.com> Date: Sat, 23 Oct 2021 06:22:02 +0900 Subject: [PATCH] Add completions for `wslpath` (#8364) * add completions for `wslpath` * add changelog entry for `wslpath` completion --- CHANGELOG.rst | 1 + share/completions/wslpath.fish | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 share/completions/wslpath.fish diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 916727248..562d10fab 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1865,6 +1865,7 @@ Other significant changes - ``sbt`` (:issue:`4347`) - ``snap`` (:issue:`4215`) - Sublime Text 3’s ``subl`` (:issue:`4277`) + - Windows Subsystem for Linux (WSL)'s ``wslpath`` - Lots of improvements to completions. diff --git a/share/completions/wslpath.fish b/share/completions/wslpath.fish new file mode 100644 index 000000000..c144b3f9a --- /dev/null +++ b/share/completions/wslpath.fish @@ -0,0 +1,4 @@ +complete -c wslpath -s a -d 'force result to absolute path format' +complete -c wslpath -s u -d 'translate from a Windows path to a WSL path (default)' +complete -c wslpath -s w -d 'translate from a WSL path to a Windows path' +complete -c wslpath -s m -d 'translate from a WSL path to a Windows path, with \'/\' instead of \'\\\''