# shellcheck shell=sh

# Cygwin shell configuration

# Cygwin package repository mirrors to use
CYGWIN_PKGS_MAIN='http://mirror.internode.on.net/pub/cygwin/'  # Cygwin Core
CYGWIN_PKGS_PORTS='ftp://ftp.cygwinports.org/pub/cygwinports/' # Cygwin Ports

# -----------------------------------------------------------------------------

# Handy aliases to each package repository
if command -v apt-cyg > /dev/null; then
    alias apt-cyg="apt-cyg -m $CYGWIN_PKGS_MAIN"
    alias apt-cyp="apt-cyg -m $CYGWIN_PKGS_PORTS"
fi

# Because I never remember the '-s' parameter
if command -v ssh-agent > /dev/null; then
    alias ssh-agent-cyg='eval $(ssh-agent -s)'
fi

# Sort out the Git prompt (__git_ps1 may not be available)
if command -v git-prompt > /dev/null; then
    # shellcheck source=/dev/null
    source "$(command -v git-prompt)"
fi

# Enable direct hardware-accelerated OpenGL rendering in Cygwin/X
if command -v startxwin > /dev/null; then
    export LIBGL_USE_WGL=1
fi

# vim: syntax=sh cc=80 tw=79 ts=4 sw=4 sts=4 et sr

# shellcheck shell=sh

# Cygwin shell configuration

# Cygwin package repository mirrors to use
CYGWIN_PKGS_MAIN='http://mirror.internode.on.net/pub/cygwin/'  # Cygwin Core
CYGWIN_PKGS_PORTS='ftp://ftp.cygwinports.org/pub/cygwinports/' # Cygwin Ports

# -----------------------------------------------------------------------------

# Handy aliases to each package repository
if command -v apt-cyg > /dev/null; then
    alias apt-cyg="apt-cyg -m $CYGWIN_PKGS_MAIN"
    alias apt-cyp="apt-cyg -m $CYGWIN_PKGS_PORTS"
fi

# Because I never remember the '-s' parameter
if command -v ssh-agent > /dev/null; then
    alias ssh-agent-cyg='eval $(ssh-agent -s)'
fi

# Sort out the Git prompt (__git_ps1 may not be available)
if command -v git-prompt > /dev/null; then
    # shellcheck source=/dev/null
    source "$(command -v git-prompt)"
fi

# vim: syntax=sh cc=80 tw=79 ts=4 sw=4 sts=4 et sr

Remove setting of LIBGL_USE_WGL as it's now the default
Remove setting of LIBGL_USE_WGL as it's now the default
