.xserverrc
author Oleksandr Gavenko <gavenkoa@gmail.com>
Thu, 23 Feb 2023 00:59:27 +0200
changeset 1016 8ba787ff5ab8
parent 277 38c4ac60b6fb
permissions -rw-r--r--
Removed .npmrc, HOME in Cygwin & running npm outside of Cygwin results in duplicating cache (in Cygwin HOME & in APPDATA).

#!/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