Defining aliases in Cygwin under Windows

后端 未结 8 2001
情话喂你
情话喂你 2021-01-17 09:58

I am trying to define some aliases in cygwin, but with no success. I am doing so like this at the end of the .bashrc file.

alias foo=\'pwd\'
         


        
8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 10:44

    It works as explained from cygwin:

    Create a file ".profile" in your windows home dir. This will load every time when you start cygwin.

    You can edit the file with your alias or you can source the .bashrc.

    If you'll source, insert "source .bashrc" and save .bashrc also in your windows home dir. Now you can start editing the .bashrc.

提交回复
热议问题