![]() ![]() bashrc file that I locate in my OneDrive. Because of this, I have modified this file to do only one thing, load up the. As far as I know, this file also must be located in your HOME directory. bash_profile file is automatically loaded by bash when you start the cygwin console. Feel free to modify them to whatever works best for you. They do have a few interesting examples in them, so read them though. These files give you a starting point for your bash configuration. The bash template files are located in the C:\\etc\skel directory. bashrc template files and place them in your HOME directory. Now you can navigate around with less characters! Here is the previous example with the new mount name. This is because without it cygwin will see all files as read-only. None /root cygdrive binary,posix=0,user,noacl 0 0Īlso, I discovered that it is quite important to add the “,noacl” to this command as well. None /cygdrive cygdrive binary,posix=0,user 0 0Īll you need to do to change the ‘/cygdrive’ to ‘/whatever-you-want’. # For a description of the file format, see the Users Guide You should see something like the following: I find the mount name ‘cygdrive’ quite long, so let’s change it! Since we are now in the ‘etc’ folder of the cygwin installation folder, open the ‘fstab’ file in your favourite text editor (I’ll use vim). If I wanted to navigate to the ‘etc’ folder in the cygwin installation folder I could do this: For example, if I wanted to witch to say my ‘D’ drive I could do this: In cygwin, to navigate around your drives there is a default mount called ‘cygdrive’ that must be included to switch drives or navigate to a folder using a fully qualified location.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |