This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

.profile not sourced?


Hello,

I have a file ~/.profile which contains some alias like

alias la='ls -la'

and ./bash_profile file containing the lines

# source the users profile if it exists
if [ -f "${HOME}/.profile" ] ; then
  source "${HOME}/.profile"
fi

when i launch the default shell (mintty) from the cygwin.bat short cuts I get :

8<--8<--8<--8<--8<-- first window 8<--8<--8<--8<--8<--8<--
$ la
total 33
drwxr-xr-x+ 1 philippe None    0 Apr  5 21:37 .
drwxrwxrwt+ 1 philippe root    0 Apr  5 17:52 ..
-rw-------  1 philippe None 2869 Apr  5 22:33 .bash_history
-rwxr-xr-x  1 philippe None 1206 Apr  5 22:19 .bash_profile
-rwxr-xr-x  1 philippe None 5663 Apr  3 21:33 .bashrc
-rwxr-xr-x  1 philippe None 1461 Apr  3 21:34 .inputrc
-rwxr-xr-x  1 philippe None 1695 Apr  5 22:18 .profile

$ mintty &
8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

but in the new mintty window alias are not sourced :

8<--8<--8<--8<-- second  window  8<--8<--8<--8<--8<--8<--8<--
$ la
bash: la: command not found

8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--8<--

what should i modify to recover my alias?

Philippe.





--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]