diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-04 10:24:08 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-04 10:24:08 +0800 |
commit | f17bb45f06d7428b01bb7fc5e4dcd3c10bb7f2b1 (patch) | |
tree | 84bf3abd5107a11e277686fdbe3ae75b098e7dfe | |
parent | 1ecab777da8245e61010ad5af231695cd3e4f96b (diff) |
update
-rw-r--r-- | alias | 29 |
1 files changed, 18 insertions, 11 deletions
@@ -151,6 +151,18 @@ alias gls='git log -S' | |||
151 | alias cdgg='cd $(git rev-parse --show-toplevel)' | 151 | alias cdgg='cd $(git rev-parse --show-toplevel)' |
152 | alias cdgw='cdgg && cd .github/workflows' | 152 | alias cdgw='cdgg && cd .github/workflows' |
153 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 153 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
154 | check_repo() { | ||
155 | cd $1 | ||
156 | echo check $1 | ||
157 | git status -s | ||
158 | [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" | ||
159 | } | ||
160 | check() { | ||
161 | check_repo $SETTING_DIR | ||
162 | check_repo $HOME/.password-store | ||
163 | check_repo $HOME/vimwiki | ||
164 | } | ||
165 | alias ch='check' | ||
154 | 166 | ||
155 | # github | 167 | # github |
156 | export GITHUB_API='https://api.github.com' | 168 | export GITHUB_API='https://api.github.com' |
@@ -457,18 +469,13 @@ alias stew='cd ~/git/mapstew' | |||
457 | alias tw='tiddlywiki' | 469 | alias tw='tiddlywiki' |
458 | alias tw='tiddlywiki' | 470 | alias tw='tiddlywiki' |
459 | alias vc='vultr-cli' | 471 | alias vc='vultr-cli' |
460 | check_repo() { | 472 | hugo(){ |
461 | cd $1 | 473 | docker run --rm \ |
462 | echo check $1 | 474 | -u `id -u`:`id -g` \ |
463 | git status -s | 475 | -v `pwd`:/src \ |
464 | [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" | 476 | klakegg/hugo \ |
477 | $@ | ||
465 | } | 478 | } |
466 | check() { | ||
467 | check_repo $SETTING_DIR | ||
468 | check_repo $HOME/.password-store | ||
469 | check_repo $HOME/vimwiki | ||
470 | } | ||
471 | alias ch='check' | ||
472 | 479 | ||
473 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 480 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
474 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' | 481 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' |