Dec 17, 2015

initial setup for Cygwin on Windows 7 or later systems

After we install Cygwin (, we encounter many problems such as "xxx command not found".
To prevent such awkward situations from happening, we may want to do some initial setups.

We can check the current PATH by typing "echo $PATH" in Cygwin console.
To set up PATH, open "C:\cygwin64\home\username\.bash_profile" in a text editor.
Add any PATH you want to the section "# Set PATH so it includes user's private bin if it exists".
For example,
# Set PATH so it includes user's private bin if it exists
# if [ -d "${HOME}/bin" ] ; then
# fi

($HOME denotes "/home/userID/" under the folder where Cygwin has been installed.  e.g., C:/cygwin64/home/myID/)

If we want to add more than one PATH, we use ":" in between directories.

2. Console (terminal) visibility
On Cygwin console, mouse right-click and select "options".
Go to "text" tab and set font to "Lucia console, 11 point".
Go to "window" tab and set size to 120 columns and 40 rows.  Set scrollback lines to 50000.
It will give more powerful environment for working in the console.

No comments:

Post a Comment