summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2025-12-28 01:44:30 +0100
committerache <ache@ache.one>2025-12-28 01:44:30 +0100
commit663d1179af6ed571cd438860037f4fea4432bd0b (patch)
treeea1be421545189176db542aff3ceb7345746ea49
parentfeat: add ipw function to get default wifi information in fish shell (diff)
feat: Exit with error code when user doesn't want to commit changes
-rwxr-xr-xfunctions/ia-commit.fish2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/ia-commit.fish b/functions/ia-commit.fish
index d47cca6..22e2b22 100755
--- a/functions/ia-commit.fish
+++ b/functions/ia-commit.fish
@@ -16,6 +16,8 @@ function _ask
_ask
else if [ $response = r ]
ia-commit
+ else if [ $response = n ]
+ exit 1
end
end