diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-06 14:57:36 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2022-03-06 14:57:36 +0800 |
commit | 7393fb900e4645513c0e2fe9420e9bd995da323e (patch) | |
tree | 2e5f10140c461e08303d13f7f5b522013c1ff2f7 | |
parent | 28ff305c83ddb348703b7d66ec676ad9c6584cdf (diff) |
update
-rw-r--r-- | alias | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -152,7 +152,7 @@ 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() { | 154 | check_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 | } |
165 | alias ch='check 2>/dev/null' | 165 | alias ch='check' |
166 | 166 | ||
167 | # github | 167 | # github |
168 | export GITHUB_API='https://api.github.com' | 168 | export GITHUB_API='https://api.github.com' |