更改mingw的启动目录或创建mingw符号链接 [英] changing mingw' startup directory or creating mingw symlinks

查看:194
本文介绍了更改mingw的启动目录或创建mingw符号链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置mingw的控制台启动目录最简单的方法是什么?我只使用mingw进行编译.但是由于缺少编辑器甚至符号链接,我很困惑如何告诉mingw控制台出现在不同目录而不是常规主目录中.

whats the easiest way to set mingw's console startup directory? i only use mingw for compiling. but due to the lack of editors or even symlinks i am confused how to tell mingw console to come up in a different directory rather than regular home dir.

如果有人知道如何像cygwin一样将真实的"符号链接放置到ntfs驱动器上,这也将有所帮助. mingw复制内容,并且在处理Subversion目录时没有用.

It would also be helpful if someone knows how to place "real" symlinks to ntfs drives like cygwin can do. mingw copies the content and that is useless when working on a subversion dir.

我是一个懒惰的人,我发现一直不停地执行cd/c/Documents/USER/.../Project的工作很痛苦:>

i am a lazy guy, and i find it painful to do the cd /c/Documents/USER/.../Project all the time :>

关于, 迈克尔

推荐答案

使用安装点代替符号链接. mingw不支持ntfs符号链接(无论如何它们还是很新的),但是挂载点在大多数用例中都是可以的(例如,简单地访问在mingw之外工作的目录).

Use mount points instead of symlinks. mingw doesn't support ntfs symlinks (they're rather new anyway), but mount points are okay for most use cases (such as simple access to the directory you're working in outside mingw).

最简单的设置新默认目录的方法可能是在主目录中使用.bashrccd设置为所需目录.

And the easiest way to set a new default directory is probably using a .bashrc in the home directory that cds to the desired directory.

这篇关于更改mingw的启动目录或创建mingw符号链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆