From 0af6d5533bc0fbcd8038ce134d1bc7b68a9cfbd5 Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 13 May 2023 15:49:39 +0200 Subject: Use ctrl-z to toggle in and out of bg --- .config/zsh/.zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index f6ad077..4564568 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -297,6 +297,12 @@ getstate () { . ~/environment.tmp } +# use ctrl-z to toggle in and out of bg +if [[ $- == *i* ]]; then + stty susp undef + bind '"\C-z":" fg\015"' +fi + # cd using "up n" as a command up as many directories, example "up 3" up() { # default parameter to 1 if non provided -- cgit v1.2.3