commit f50c7d32b893c9a2605c4ae4e8baeb86919e0e96 parent 66b3127f6b066980285caaa2d495448914949978 Author: Byron Torres <b@torresjrjr.com> Date: Mon, 8 Mar 2021 19:45:38 +0000 Improve git repo detection for git statusline Diffstat:
M | sh/.rc.sh | | | 13 | ++++--------- |
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/sh/.rc.sh b/sh/.rc.sh @@ -28,16 +28,11 @@ alias gitll='git log --oneline --decorate --graph --all' alias gits='git status -s' alias gitss='git status -v' alias gitf=' - git status - gitl - echo ">>>" - git fetch -v - echo "<<<" - gitl - git status + git status ; gitl + echo ">>>" ; git fetch -v ; echo "<<<" + gitl ; git status ' - # combinations alias lf='la; tree -L 1' @@ -47,7 +42,7 @@ alias lf='la; tree -L 1' runtime_print() { $FETCH ls -FAX ; echo - test -d .git && { + git log -0 2>&- && { # if git repo git log -1 --oneline --decorate git status -s echo