commit 2088c1c7ea77cc01afc50762c09d8936dc4b5dba
parent bebc2b66b7882f180e017d779d1244d911b64676
Author: hhvn <dev@hhvn.uk>
Date: Sun, 2 Jan 2022 02:33:25 +0000
.rcrc: silent git errors
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.rcrc b/.rcrc
@@ -44,7 +44,7 @@ fn __prompt {
}
# unpushed commits
- __prompt_log = ``(''){git log '--pretty=format:commit %h%d'}
+ __prompt_log = ``(''){git log '--pretty=format:commit %h%d' >[2]/dev/null}
if (echo $__prompt_log | head -n1 | grep -v '.*\/.*' >/dev/null) {
tput setaf 14
echo $__prompt_log | awk '-vc=0' '