Cygwin Tips

1. 添加右键菜单

    在cygwin命令行执行    

1 chere -i -fp -c -t mintty

    默认只添加文件夹和驱动器的右键菜单,下面的注册表将添加空白处的右键菜单

1 Windows Registry Editor Version 5.00
2 
3 [HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash]
4 @="&Bash Prompt Here"
5 
6 [HKEY_CLASSES_ROOT\Directory\Background\shell\cygwin_bash\command]
7 @="C:\\cygwin\\bin\\mintty.exe -e c:\\cygwin\\bin\\bash -c \"/bin/xhere /bin/bash.exe\""

 

2. gtk环境搭建

    安装TDM-GCC

    安装gtk

    修正gcc pkg-config bug(See Ref Step 4)。

    Create a file /gtk/bin/pkg-config.sh, with the contents

1 #!/bin/sh
2 if pkg-config "$@" > /dev/null 2>&1 ; then
3     res=true
4 else
5     res=false
6 fi
7 pkg-config "$@" | tr -d \\r && $res

   在.bashrc中添加:

alias pkg-config="/gtk/bin/pkg-config.sh"

 

 

posted @ 2012-04-24 13:31  Devァer、  阅读(326)  评论(0编辑  收藏  举报