【文件属性】:
文件名称:go tool Linux dir
文件大小:27KB
文件格式:PY
更新时间:2013-09-23 04:58:24
go-tool
应用于Ubuntu等Linux系统环境,方便进入指定目录,方便查询包含关键字的文件
使用方法
拷贝go.py到 /usr/local/lib/python2.6/dist-packages/ 目录下
将下面的几行代码拷贝至~/.bashrc下
# Bash shell driver for 'go' (http://code.google.com/p/go-tool/).
function go {
export GO_SHELL_SCRIPT=$HOME/.__tmp_go.sh
python -m go $*
if [ -f $GO_SHELL_SCRIPT ] ; then
source $GO_SHELL_SCRIPT
fi
unset GO_SHELL_SCRIPT
}