aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-15 23:02:43 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-15 23:05:36 -0700
commite6d4ac5ee25f09bd661e0360844ca107fb6c3491 (patch)
tree4fba6cd5febd4b671839b0d588b35c1331071815
parent0ca103686f3896fcfb9e44601c35371d53140ca4 (diff)
Decrease minimum SHLVL for suspend without --force
There is some discussion on #2269
-rw-r--r--share/functions/suspend.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/functions/suspend.fish b/share/functions/suspend.fish
index 72ba10ca..32cdfa90 100644
--- a/share/functions/suspend.fish
+++ b/share/functions/suspend.fish
@@ -1,6 +1,6 @@
# If the user hasn't set it, make sure our test level has a value
if not set -q suspend_minimum_SHLVL
- set -g suspend_minimum_SHLVL 3
+ set -g suspend_minimum_SHLVL 2
end
@@ -11,6 +11,7 @@ function suspend -d "Suspend the current shell."
and not status --is-login
end
end
+ echo Suspending %self
kill -STOP %self
else
echo 2>&1 Cannot suspend login shell or SHLVL to low, use --force to force.