From e6d4ac5ee25f09bd661e0360844ca107fb6c3491 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Wed, 15 Jun 2016 23:02:43 -0700 Subject: Decrease minimum SHLVL for suspend without --force There is some discussion on #2269 --- share/functions/suspend.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- cgit v1.2.3