aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-03-06 14:57:36 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-03-06 14:57:36 +0800
commit7393fb900e4645513c0e2fe9420e9bd995da323e (patch)
tree2e5f10140c461e08303d13f7f5b522013c1ff2f7
parent28ff305c83ddb348703b7d66ec676ad9c6584cdf (diff)
update
-rw-r--r--alias4
1 files changed, 2 insertions, 2 deletions
diff --git a/alias b/alias
index 9b8a8d3..1170218 100644
--- a/alias
+++ b/alias
@@ -152,7 +152,7 @@ alias 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() { 154check_repo() {
155 cd $1 155 cd $1 2>/dev/null || return 0
156 echo check $1 156 echo check $1
157 git status -s 157 git status -s
158 [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" 158 [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m"
@@ -162,7 +162,7 @@ check() {
162 check_repo $HOME/.password-store 162 check_repo $HOME/.password-store
163 check_repo $HOME/vimwiki 163 check_repo $HOME/vimwiki
164} 164}
165alias ch='check 2>/dev/null' 165alias ch='check'
166 166
167# github 167# github
168export GITHUB_API='https://api.github.com' 168export GITHUB_API='https://api.github.com'