From 080458b31c47c44823cfc27fc577f68640006407 Mon Sep 17 00:00:00 2001 From: Mike Meyer Date: Tue, 4 Aug 2015 07:05:17 -0500 Subject: [PATCH] Add a shell suspend function --- share/functions/suspend.fish | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 share/functions/suspend.fish diff --git a/share/functions/suspend.fish b/share/functions/suspend.fish new file mode 100644 index 000000000..ce3824eb4 --- /dev/null +++ b/share/functions/suspend.fish @@ -0,0 +1,7 @@ +function suspend + if status --is-login + echo cannot suspend login shell >&2 + else + kill -STOP %self + end +end