|
发表于 2011-4-2 12:40:16
|
显示全部楼层
边用边学效果更好.我学ABS最后就是把它的.bashrc拿来自己用..
从自己的需要出发学习总是最有效的,例如,以下是我简化版本控制和代码review流程(流程是公司定的)的.bashrc,工作效率提升了10倍,100倍,自然乐在其中.- #@see http://search.cpan.org/~jhi/perl-5.8.0/Porting/repository.pod
- alias p4clr='p4 diff -sr | p4 -x - revert'
- alias p4blame='p4 annotate -c -db -a'
- alias p4ci='p4 submit -f leaveunchanged+reopen -r'
- alias reviewcl='ccollab addchangelist new'
- alias p4pending='p4 changes -s pending ...'
- alias p4shelved='p4 changes -s shelved ...'
- alias p4all='p4 changes ...|less'
- alias p4untrack='find . -type f| p4 -x - fstat >/dev/null'
- alias p4v='p4 resolve'
- alias p4r='p4 revert'
- alias p4e='p4 edit'
- alias p4s='p4 submit'
- alias p4o='p4 opened'
- alias p4c='p4 changes'
- alias p4d='p4 diff -du -db'
- alias p4i='p4 integrate'
- alias p4h='p4 changes -m 1 ...'
复制代码 bash编程不用学得特别细,到时候再查也可以. |
|