diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-07 11:28:44 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-02-07 11:28:44 +0800 |
commit | e1e64d967d43a450c151313413de0e98d2ccab1e (patch) | |
tree | 98b031dcb4840d3afda8f814f5f3c1c0f48c2f7b | |
parent | 4b7ea71ebb22802f2c76c8a22d1ef3d03099ad63 (diff) |
foo
-rw-r--r-- | alias | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -452,9 +452,15 @@ alias stew='cd ~/git/mapstew' | |||
452 | alias tw='tiddlywiki' | 452 | alias tw='tiddlywiki' |
453 | alias tw='tiddlywiki' | 453 | alias tw='tiddlywiki' |
454 | alias vc='vultr-cli' | 454 | alias vc='vultr-cli' |
455 | check_repo() { | ||
456 | cd $1 | ||
457 | echo check $1 | ||
458 | git status -s | ||
459 | [[ -n $(git cherry origin) ]] 2>/dev/null && local status="\e[31m[ahead]\e[0m" | ||
460 | } | ||
455 | check() { | 461 | check() { |
456 | cd $SETTING_DIR && echo check `pwd` && git status -s | 462 | check_repo $SETTING_DIR |
457 | cd $HOME/.password-store && echo check `pwd` && git status -s | 463 | check_repo $HOME/.password-store |
458 | } | 464 | } |
459 | 465 | ||
460 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 466 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |