aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Aaron Gyes <me@aaron.gy>2016-06-18 22:20:18 -0700
committerGravatar Aaron Gyes <me@aaron.gy>2016-06-18 22:20:18 -0700
commit7ac32e45cb90118ebbb4d4fe2024fc1751a3b65b (patch)
tree1a1a52397054e0a00dd805f275b7bfb186153fab
parentf04644f749f54a9773884a61e76540c53bf0d42b (diff)
Remove SHLVL check.
Fixes #3154.
-rw-r--r--share/functions/suspend.fish13
1 files changed, 2 insertions, 11 deletions
diff --git a/share/functions/suspend.fish b/share/functions/suspend.fish
index 32cdfa90..295b9f34 100644
--- a/share/functions/suspend.fish
+++ b/share/functions/suspend.fish
@@ -1,19 +1,10 @@
-# 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 2
-end
-
-
function suspend -d "Suspend the current shell."
if begin contains -- $argv --force
- or not status --is-interactive
- or begin test $SHLVL -ge $suspend_minimum_SHLVL
- and not status --is-login
- end
+ or not status --is-interactive and not status --is-login
end
echo Suspending %self
kill -STOP %self
else
- echo 2>&1 Cannot suspend login shell or SHLVL to low, use --force to force.
+ echo 2>&1 Cannot suspend login shell. Use --force to override.
end
end