2016年6月30日

配置oh-my-zsh

1. 当使用zsh进入庞大的git工程目录下时,会发生cd命令很慢的情况

可以把~/.oh-my-zsh/lib/git.zsh里面的git_prompt_info函数替换为

function git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_SUFFIX"
}

posted @ 2016-06-30 19:39 JohnChain 阅读(579) 评论(0) 推荐(0) 编辑

2015年5月13日

Thunderbird导出邮件为PDF文件

摘要: 一般如果在windows下,可以通过打印的方式,生成一个PDF文件,可以完成此任务.而今天在linux下采取此方式,生成的PDF文件居然是空白.原因未知.而Thunderbird并未提供该功能,这样就需要使用扩展插件.网上有人推荐使用autosave插件,但我使用的Thunderbird 31.5.... 阅读全文

posted @ 2015-05-13 14:58 JohnChain 阅读(554) 评论(0) 推荐(0) 编辑

2015年4月23日

readb(), readw(), readl(),writeb(), writew(), writel() 宏函数

摘要: 参见:http://blog.csdn.net/hustyangju/article/details/20448339 阅读全文

posted @ 2015-04-23 10:12 JohnChain 阅读(318) 评论(0) 推荐(0) 编辑

2015年2月28日

Geany IDE搭建

摘要: http://blog.sina.com.cn/s/blog_567e650201010x5e.html 阅读全文

posted @ 2015-02-28 14:37 JohnChain 阅读(373) 评论(0) 推荐(0) 编辑

fileOP

摘要: 1 public void getFileDir(String filePath) { 2 try{ 3 this.tv.setText("当前路径:"+filePath);// 设置当前所在路径 4 items =... 阅读全文

posted @ 2015-02-28 14:34 JohnChain 阅读(203) 评论(0) 推荐(0) 编辑

2015年2月27日

Qt 学习之路问题

摘要: Qt5 cannot include the file QMainWindowadd "greaterThan(QT_MAJOR_VERSION, 4): QT += widgets" to .pro fileunknown module : multimediamake sureQt 5 Mult... 阅读全文

posted @ 2015-02-27 11:21 JohnChain 阅读(158) 评论(0) 推荐(0) 编辑

2014年12月19日

VT-x is disabled in the BIOS. (VERR_VMX_MSR_VMXON_DISABLED)

摘要: 参考以下文章:http://94it.net/a/jingxuanboke/2014/0717/368367.html 阅读全文

posted @ 2014-12-19 10:25 JohnChain 阅读(836) 评论(0) 推荐(0) 编辑

2014年8月15日

Linux修改Linux默认打开方式

摘要: 从总体上讲/etc/gnome/defaults.list 保存了全局的打开方式/.local/share/applications/mimeapps.list 保存了个人的打开方式当两着不一致是,优先采用局部的个人设置。按照/etc/..../default.list的格式往家目录下的配置文件内添... 阅读全文

posted @ 2014-08-15 10:13 JohnChain 阅读(648) 评论(0) 推荐(0) 编辑

2014年8月13日

JAVA关于byte数组与String转换的问题

摘要: 1 public class ToString{ 2 public static void main(String[] args){ 3 String aa = "hellow"; 4 byte[] bb = aa.getBytes(); 5 ... 阅读全文

posted @ 2014-08-13 16:01 JohnChain 阅读(1396) 评论(0) 推荐(0) 编辑

2014年8月4日

XML快速注释

摘要: eclipse中编辑java或C/C++,python文件时,注释的快捷键均为 "CTRL + / ",编辑xml文件时,该快捷键无效。eclipse XML 注释:CTRL + SHIFT + /撤销注释:CTRL + SHIFT + \ 阅读全文

posted @ 2014-08-04 09:21 JohnChain 阅读(1666) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

导航

点击右上角即可分享
微信分享提示