使用Notepad ++在cygwin内的git [英] using Notepad++ for git inside cygwin
本文介绍了使用Notepad ++在cygwin内的git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是此问题的扩展
组合,我可以想到为我的shell脚本。当我有我的cygwin控制台(im使用mintty如果它重要)我可以键入
i have done all combinations that i can think of for my shell script. when i have my cygwin console (im using mintty if it matters) i can type
npp {file}
,文件正确打开。但是当我做一个
and the file opens correctly. but when i do a
git rebase -i HEAD~5
npp打开一个空白的新文档,而不是交互式文件来控制rebase。任何想法为什么会发生这种情况?
npp opens with a blank new document, not the interactive file to control the rebase. any idea why this would be happening?
git --version
git version 1.7.9
最新版本的cygwin在Windows 7机器和NPP 5.9.8
latest version of cygwin on a windows 7 machine and NPP 5.9.8
#!/bin/sh
"C:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -notabbar \
-nosession -noPlugin "$*"
推荐答案
我对cygwin路径问题是正确的。我把我的shell包装改成了这个
I was correct about my cygwin path issue. i changed my shell wrapper to this
#!/bin/sh
'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar \
-nosession -noPlugin "$(cygpath -w "$*")"
它工作得很好。
这篇关于使用Notepad ++在cygwin内的git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文