Cygwin initializes environment variable settings

Source: Internet
Author: User

Recently, cygwin was installed to simulate the Linux environment. The local version is installed, which is fast.

After installation, the default home path is not/home/user, but c: \ Documents ents and Settings \ User.

First, configure your own user directory as follows:

1. Configure your user directory

Create your own directory under the/home directory, for example, my user name is Bom.

Copy the. bash_profile,. bashrc, And. inputrc files under the/etc/skel/directory to the BOM directory.

$ LS-a... bash_profile. bashrc. inputrc. mkshrc. Profile

2. Modify the home variable

The Home variable saves the default folder path to be located when you log on to the shell.

You can modify the cygwin. BAT file to implement

@ Echo offset lang = zh_cnd: chdir D: \ cygwin_root \ binset home = \ home \ bombash -- login-I

Set lang = zh_cn is used to allow shell scripts to output Chinese characters.

After the preceding settings, restart cygwin.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.