From 7393fb900e4645513c0e2fe9420e9bd995da323e Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sun, 6 Mar 2022 14:57:36 +0800 Subject: update --- alias | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alias') 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)' alias cdgw='cdgg && cd .github/workflows' alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule check_repo() { - cd $1 + cd $1 2>/dev/null || return 0 echo check $1 git status -s [[ -n $(git cherry origin) ]] 2>/dev/null && print "\e[31m[ahead]\e[0m" @@ -162,7 +162,7 @@ check() { check_repo $HOME/.password-store check_repo $HOME/vimwiki } -alias ch='check 2>/dev/null' +alias ch='check' # github export GITHUB_API='https://api.github.com' -- cgit v1.2.3-70-g09d2