mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-01 10:13:59 +08:00
7ac32e45cb
Fixes #3154.
11 lines
313 B
Fish
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
|