aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-03-04 10:24:08 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-03-04 10:24:08 +0800
commitf17bb45f06d7428b01bb7fc5e4dcd3c10bb7f2b1 (patch)
tree84bf3abd5107a11e277686fdbe3ae75b098e7dfe /alias
parent1ecab777da8245e61010ad5af231695cd3e4f96b (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias29
1 files changed, 18 insertions, 11 deletions
diff --git a/alias b/alias
index 50f994f..138677c 100644
--- a/alias
+++ b/alias
@@ -151,6 +151,18 @@ alias gls='git log -S'
151alias cdgg='cd $(git rev-parse --show-toplevel)' 151alias cdgg='cd $(git rev-parse --show-toplevel)'
152alias cdgw='cdgg && cd .github/workflows' 152alias cdgw='cdgg && cd .github/workflows'
153alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule 153alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule
154check_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}
160check() {
161 check_repo $SETTING_DIR
162 check_repo $HOME/.password-store
163 check_repo $HOME/vimwiki
164}
165alias ch='check'
154 166
155# github 167# github
156export GITHUB_API='https://api.github.com' 168export GITHUB_API='https://api.github.com'
@@ -457,18 +469,13 @@ alias stew='cd ~/git/mapstew'
457alias tw='tiddlywiki' 469alias tw='tiddlywiki'
458alias tw='tiddlywiki' 470alias tw='tiddlywiki'
459alias vc='vultr-cli' 471alias vc='vultr-cli'
460check_repo() { 472hugo(){
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}
466check() {
467 check_repo $SETTING_DIR
468 check_repo $HOME/.password-store
469 check_repo $HOME/vimwiki
470}
471alias ch='check'
472 479
473TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' 480TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
474TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' 481TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'