0
I just installed cygwin and everything is pretty good but, cygwin doesn't pick up .bashrc file.
vi ~/.bashrc
alias ls='ls -la --color'
after reopened a new cygwin terminal, the content is still there, but alias doesn't work.
If I run alias ls='ls -la --color'
in the terminal, alias works but it doesn't save to .bashrc file.
I am sure I am in the user home directory cd ~
someone could give me a hint? Thanks a lot
thanks for your answer. I created
~/.profile
but got this error-bash: $'\r': command not found
– olo – 2012-11-07T00:54:36.9171
That is because your editor used Windows line endings (CR+LF, or \r\n) instead of Unix line ending (LF, or \n, only). You can read more about it here, for example. You can probably solve the problem by running the
– pino42 – 2012-11-07T01:05:20.830dos2unix .profile
command.dos2unix permission denied. I will try to get this sorted.thanks a lot – olo – 2012-11-07T01:28:21.773