diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2022-09-26 12:23:25 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2022-09-26 12:23:25 +0800 |
commit | bdd49000c6c01d7b74b5507f03d42df85dbe6520 (patch) | |
tree | bd8fdd47a61a2eb04bea8b0b263a1e5eb1087c5f | |
parent | c306c38c913f8c05d734d613e06a4f628019f8d3 (diff) |
Update
-rw-r--r-- | alias | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -207,7 +207,7 @@ check_repo() { | |||
207 | cd $1 2>/dev/null || return 0 | 207 | cd $1 2>/dev/null || return 0 |
208 | echo check $1 | 208 | echo check $1 |
209 | git status -s | 209 | git status -s |
210 | [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" | 210 | [[ -n $(git cherry ${2:-origin}) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" |
211 | } | 211 | } |
212 | check() { | 212 | check() { |
213 | DIR=`pwd` | 213 | DIR=`pwd` |
@@ -216,7 +216,7 @@ check() { | |||
216 | check_repo $HOME/log | 216 | check_repo $HOME/log |
217 | check_repo $HOME/.task | 217 | check_repo $HOME/.task |
218 | check_repo $HOME/bean | 218 | check_repo $HOME/bean |
219 | check_repo $HOME/.vim/vim-init | 219 | check_repo $HOME/.vim/vim-init vps |
220 | cd $DIR | 220 | cd $DIR |
221 | } | 221 | } |
222 | alias ch='check' | 222 | alias ch='check' |