Skip to content

Instantly share code, notes, and snippets.

@hexiyou
Forked from amomin/cygwin.markdown
Created October 19, 2022 18:52
Show Gist options
  • Save hexiyou/c7f0fdabd9a8ea4691fa51531cb92473 to your computer and use it in GitHub Desktop.
Save hexiyou/c7f0fdabd9a8ea4691fa51531cb92473 to your computer and use it in GitHub Desktop.
Cygwin notes

Notes on making cygwin work

  • See this so answer using mkpasswd for one way to change your default home directory
  • You can always add packages after install by re-running setup.

Packages to add

  • wget (Web)
  • curl (PHP, Net)
  • ssh (Net)
  • git
  • mysql (client) - even if you install the server separately, you'll want this to connect becasuse it may well have problems with the windows cli installation. You can still connect to whatever server is running - but you may need to specify the host as 127.0.0.1 to avoid connecting via the socket (which won't work).
  • ctags
  • ncurses
  • bind-utils

ctags

Allows you to jump to function definitions, use the tagbar vim plugin, etc...

Create the tags file

$ ctags --languages=php -f ctags

Set the tags file in vim :tags ctags, and then ctrl+] to jump to definition, ctrl+T to jump back, etc... see this stackoverflowanswer

ncurses (clear)

This will add e.g. the "clear" command for the terminal.

bind-utils (dig)

You can get dig from the bind-utils package in the Net section in the installer -see here:

  1. First download the cygwin installer for 32 or 64 bit, depending upon your local installation
  2. Run the installer and walk through the locations and mirrors to use
  3. At the Select Packages page, enter bind-util in the search field
  4. Expand the selection and select the checkbox for “binary?”
  5. Select Next and allow it to install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment