Run gfold when s is not in a git repo

This commit is contained in:
2025-09-22 09:59:11 +02:00
parent 3d8f12419e
commit b63074795a
2 changed files with 7 additions and 1 deletions

View File

@@ -26,7 +26,6 @@
bat = "bat -p";
# git stuff
s = "git status";
gs = "git status";
gl = "git log";
gu = "git pull";

View File

@@ -89,6 +89,13 @@ proxy() {
ssh -NR "5000:localhost:$1" zoriya@ssh.sdg.moe
}
s() {
git status 2>/dev/null
if [[ $? -ne 0 ]]; then
gfold
fi
}
# keep yq's output in yaml & colorizes it
yq() {
# if `-r` is in the arguments, do not add the -Y flag because it breaks yq.