mirror of
https://github.com/zoriya/flake.git
synced 2025-12-06 06:36:19 +00:00
Run gfold when s is not in a git repo
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
bat = "bat -p";
|
||||
|
||||
# git stuff
|
||||
s = "git status";
|
||||
gs = "git status";
|
||||
gl = "git log";
|
||||
gu = "git pull";
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user