https://superuser.com/questions/1247541/make-bash-completion-to-ignore-exe-extention-in-cygwin
https://superuser.com/questions/1072481/tab-completion-for-command-arguments-fail-in-cygwin-due-to-exe-suffix
https://github.com/scop/bash-completion/issues/164
#!/bin/sh
# http://tldp.org/HOWTO/XWindow-User-HOWTO/runningx.html
if [ -n "$WINDIR" -o "$TERM" = cygwin ]; then
# Probably under Cygwin.
exec XWin -multiwindow -clipboard -silent-dup-error -xkblayout "us,ru" -xkboptions "grp:caps_toggle" "$@"
elif [ -f /etc/debian_version ]; then
exec /usr/bin/X -nolisten tcp "$@"
else
exec X -nolisten tcp "$@"
fi