blob: 295b9f341f55338f8ca3a9553aef8e93b7e5eab2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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
|