无法修改的git bash的Windows快捷方式 [英] Unable to modify git bash Windows shortcut
问题描述
在Windows 7我想更改设置Git的猛砸这里外壳扩展命令窗口,例如宽度,高度和字体。但是,当我这样做,我得到一个错误无法修改的快捷方式。
我可以通过使用以管理员身份运行...这个工程修改的Git的Bash在开始菜单快捷方式,但只从开始菜单打开窗户猛砸。它的不的为混帐击这里的外壳扩展工作,并没有以管理员身份运行...右键单击快捷菜单上的选项。
你怎么办呢?
如果你运行git bash作为管理员通过它的图标并选择右键单击以管理员身份运行,您将可以更改设置,让他们坚持。
您可以通过关闭admin会话,然后重新打开以普通用户身份验证这一点。
我这样做是为了设置的默认值,然后只是用来作为混帐从那时起,普通用户。
编辑:我的答案是过时的,如果你使用的是最新版本的msysgit和sebastien.b发布与更新的解决方案 - HTTP ://stackoverflow.com/a/7216120/104783
它规定
解决方法是编辑
的Git Bash.vbs
脚本,并使其再次执行环节,而不是sh.exe。寻找这一行:暗淡庆典:庆典= fso.BuildPath(gitdir,本\\ sh.exe)
和这一行替换:
暗淡庆典:庆典= fso.BuildPath(gitdir,混帐Bash.lnk)
块引用>andrej351也有<一个href=\"http://stackoverflow.com/questions/2621281/unable-to-modify-git-bash-windows-shortcut/3338886#comment8858307_7216120\">a善意的提醒
另外,不要忘记,以使设置保存到选择下拉菜单中的默认值,而不是属性
块引用>Under Windows 7 I'd like to change the settings for the Git Bash Here shell extension command window, e.g. width, height and font. But when I do this, I get an error "Unable to modify the shortcut".
I can modify the shortcut for Git Bash in the Start menu by using "Run as administrator..." This works, but only for Bash windows opened from the Start menu. It doesn't work for the "Git Bash Here" shell extension and there's no "Run as administrator..." option on right-click context menu.
How do you do it?
解决方案If you run git bash as administrator by right clicking on its icon and selecting "Run As Administrator" you will be able to change your settings and have them persist.
You can verify this by closing the admin session then reopening as a normal user.
I did this to set the defaults then just used git as a normal user from then on.
edit: My answer is outdated if you're using the most recent msysgit version and sebastien.b posted the updated solution with - http://stackoverflow.com/a/7216120/104783
It states
The fix is to edit the
Git Bash.vbs
script and have it execute the link again, instead of sh.exe. Look for this line:Dim bash : bash = fso.BuildPath(gitdir, "bin\sh.exe")
and replace it with this line:
Dim bash : bash = fso.BuildPath(gitdir, "Git Bash.lnk")
andrej351 also has a good reminder
Also, don't forget to select "Defaults" instead of "Properties" from the drop down menu in order to have the settings persisted
这篇关于无法修改的git bash的Windows快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!