Decrease minimum SHLVL for suspend without --force

There is some discussion on #2269
This commit is contained in:
Aaron Gyes 2016-06-15 23:02:43 -07:00
parent 0ca103686f
commit e6d4ac5ee2

View File

@ -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.