.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Tue, 05 Sep 2017 17:35:44 +0300
changeset 885 bfbd7fdc89f8
parent 277 38c4ac60b6fb
permissions -rw-r--r--
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