mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Add a shell suspend function
This commit is contained in:
parent
e56f0628d5
commit
080458b31c
1 changed files with 7 additions and 0 deletions
7
share/functions/suspend.fish
Normal file
7
share/functions/suspend.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
function suspend
|
||||
if status --is-login
|
||||
echo cannot suspend login shell >&2
|
||||
else
|
||||
kill -STOP %self
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue