fish-shell/share/functions/suspend.fish
Aaron Gyes 7ac32e45cb Remove SHLVL check.
Fixes #3154.
2016-06-18 22:20:18 -07:00

11 lines
313 B
Fish

function suspend -d "Suspend the current shell."
if begin contains -- $argv --force
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. Use --force to override.
end
end