From 5add5d6275abf1e36a05e593afd1c87e45d86e44 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Tue, 15 Nov 2022 20:35:15 +0800 Subject: [PATCH] git-branches --- .zshrc2 | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshrc2 b/.zshrc2 index ca81942..4db1ef9 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -88,6 +88,7 @@ alias "se"='sudo -sE' alias "pbd"='ping baidu.com' alias "p114"='ping 114.114.114.114' alias "p666"='ping6 2001:da8::666' +alias "git-branches"='git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:short) %(color:red)%(objectname:short) %(color:yellow)%(refname:short)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset)) %(authorname)"' sibd() { ssh -p 12022 root@$1${1:+.}ibd.ink } sob() { ssh -p 24022 root@$1${1:+.}ob.ac.cn } snasp() { ssh -o ProxyJump="ssh@nasp.ob.ac.cn:36022" dictxiong@$1 }