changing the home folder name

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

changing the home folder name

Post by hallo007 »

how do you let cygwin open another home folder???
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

Not sure if it's the correct way, but it works.
Just change the batch file and add the "cd" commands to get to your desired directory.

i.e.

If your "home" folder defaults to "\home\username" and you have a folder in "\cygwin\projects" that you want it to go to:

Code: Select all

cd ..
cd ..
cd projects
HTH
hallo007
Posts: 36
Joined: Sat May 13, 2006 6:15 pm

Post by hallo007 »

yeah i did that , but it's a bit stupid:p

anyway i made a new windows account and reinstalled evrything and now everything works fine:)
califrag
Posts: 30
Joined: Wed Apr 04, 2007 4:43 pm

Post by califrag »

glad it worked. another thing you can do is open the file bash.bashrc located in \cygwin\etc in notepad and add the cd commands there:

Code: Select all

# base-files version 3.7-1

# WARNING
#
# IF THIS bash IS MODIFIED IT WILL NOT BE UPDATED BY THE CYGWIN
# SETUP PROGRAM.  IT BECOMES YOUR RESPONSIBILITY.
#
# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/bash.bashrc

# System-wide .bashrc file
cd ../../../projects
ls
Post Reply