aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2022-09-26 12:23:25 +0800
committerHsieh Chin Fan <pham@topo.tw>2022-09-26 12:23:25 +0800
commitbdd49000c6c01d7b74b5507f03d42df85dbe6520 (patch)
treebd8fdd47a61a2eb04bea8b0b263a1e5eb1087c5f /alias
parentc306c38c913f8c05d734d613e06a4f628019f8d3 (diff)
Update
Diffstat (limited to 'alias')
-rw-r--r--alias4
1 files changed, 2 insertions, 2 deletions
diff --git a/alias b/alias
index 2ddbea5..9552de0 100644
--- a/alias
+++ b/alias
@@ -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}
212check() { 212check() {
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}
222alias ch='check' 222alias ch='check'