From 75bfbb6e903d6081be502a5e1d31fb28beb92599 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sun, 2 Oct 2016 19:15:04 +1100 Subject: [PATCH] Add an accidentally untracked new file --- home/.zsh/functions/fancy-ctrl-z | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 home/.zsh/functions/fancy-ctrl-z diff --git a/home/.zsh/functions/fancy-ctrl-z b/home/.zsh/functions/fancy-ctrl-z new file mode 100644 index 0000000..88b9503 --- /dev/null +++ b/home/.zsh/functions/fancy-ctrl-z @@ -0,0 +1,7 @@ +#! zsh +if [[ -z $BUFFER && -n $jobstates ]]; then + BUFFER=" fg" + zle accept-line +else + zle self-insert '^Z' +fi