分享 Suit Up! 写了一个 bash 工具和大家分享 -- 老爸老妈的粉丝必读! 必用!

ery · 2012年01月19日 · 最后由 camel 回复于 2012年02月04日 · 2946 次阅读

网址 https://github.com/ery/suitup

比如 suitup-git-add-commit-push suitup-git-add-commit-push 'fixed a text bug' 等于 git add . git commit -am 'fixed a text bug' git push

再比如 oc oc 等于 gnome-open . # 打开当前目录

还有一个 suitup-git-compress 我很喜欢 suitup-git-compress 会基于 remote.origin 最后的 commit, 将你后来所有的 commit 压缩成一个 commit, 原理是 git reset, 这样你就不用自己做 git reset 啦。

技巧提示 列出所有 suitup 的命令(前提是安装以后) 输入 sui tab 变成 suitup- 原理是 sui 是这个名字不常见(如果命名冲突尝试用 suit) 然后 tab tab 会列出所有 suitup 的命令

suitup 名字的由来 1 看过<<老爸老妈>>吗? Barney 的最初的口头蝉就是 Suitup! 不过最近几年他很少说了。 不过他依然只穿西装!

2 suitup 有两个优点: suitup 字母特别容易输入,尤其是 sui suitup 在 ubuntu 系统中不常见,sui 也不常见 因为不常见的特点,所以可以使用 shell 的自动补齐和提示 Tab

3 suitup 的含义是工具的用途一致: suit 套装,方便 suitup 穿上特种用途的全套服装

希望大家喜欢!

强啊,不过我现在开始转向 zsh 了,强烈推荐 oh-my-zsh customization 太方便了

suitup-git-add-commit-push 这个很有效率,以前都输 3 个命令

需要 登录 后方可回复, 如果你还没有账号请 注册新账号