Cygwin bash completion.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 30 Dec 2018 17:41:54 +0200
changeset 2320 b7a2c43902f3
parent 2319 3d50794717d5
child 2321 77c3f7ddcb5f
Cygwin bash completion.
cygwin.rst
--- a/cygwin.rst	Sun Dec 30 14:08:23 2018 +0200
+++ b/cygwin.rst	Sun Dec 30 17:41:54 2018 +0200
@@ -124,8 +124,10 @@
   $ apt-cyg cache ~/net
   Cache set to C:\home\net.
 
+https://github.com/kou1okada/apt-cyg
+  Still maintained project with extra features.
 https://github.com/transcode-open/apt-cyg/
-  Home page.
+  Home page of abandoned project.
 https://github.com/transcode-open/apt-cyg/issues/19
   Request to support multiply sources.
 http://stackoverflow.com/questions/22411162/how-to-add-a-repository-using-apt-cyg/
@@ -134,6 +136,22 @@
   Depricated way to install from several sources with ``-m`` option using shell
   aliases as a trick.
 
+Cygwin bash completion
+======================
+
+Cygwin ``bash`` has extra patch that adds ``completion_strip_exe`` option::
+
+  shopt -s completion_strip_exe
+
+If you complete executable ``.exe`` suffix is stripped if any. That halps with ``bash-completion``
+because usually comletion defined for base name without ``.exe`` suffix, like::
+
+  complete -F _figlet figlet
+
+https://github.com/cygwinports/bash
+  7b. completion_strip_exe - using 'shopt -s completion_strip_exe'
+  makes completion strip .exe suffixes.
+
 Cygwin file permission
 ======================