mirror of
https://github.com/zoriya/flake.git
synced 2026-06-09 21:35:46 +00:00
Run gfold when s is not in a git repo
This commit is contained in:
@@ -26,7 +26,6 @@
|
|||||||
bat = "bat -p";
|
bat = "bat -p";
|
||||||
|
|
||||||
# git stuff
|
# git stuff
|
||||||
s = "git status";
|
|
||||||
gs = "git status";
|
gs = "git status";
|
||||||
gl = "git log";
|
gl = "git log";
|
||||||
gu = "git pull";
|
gu = "git pull";
|
||||||
|
|||||||
@@ -89,6 +89,13 @@ proxy() {
|
|||||||
ssh -NR "5000:localhost:$1" zoriya@ssh.sdg.moe
|
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
|
# keep yq's output in yaml & colorizes it
|
||||||
yq() {
|
yq() {
|
||||||
# if `-r` is in the arguments, do not add the -Y flag because it breaks yq.
|
# if `-r` is in the arguments, do not add the -Y flag because it breaks yq.
|
||||||
|
|||||||
Reference in New Issue
Block a user