Skip to content
/ ctrl-zsh Public

Switch in and out of command-line apps with one keystroke: Ctrl-Z

Notifications You must be signed in to change notification settings

Peeja/ctrl-zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Ctrl-Zsh

Did you know you can suspend any (well, almost any) process in the terminal by pressing Ctrl-Z? You did? But you always found it a pain to reactivate it because you had to type fg at the prompt? Me too!

That's why I wrote Ctrl-Zsh. Just install this tiny Zsh plugin and suddenly Ctrl-Z will also take you back into the process you just left. Amazing!

(For more information about the awesomeness of job control, see my blog post on the topic.)

Installation

Antigen

Antigen is awesome, and if you aren't using it yet, you should give it a try. To install Ctrl-Zsh just add

antigen-bundle Peeja/ctrl-zsh

to your .zshrc. Or, to try before you buy, just run that command to enable Ctrl-Zsh for the current shell session.

Oh My Zsh!

Add it to your plugins directory, like so:

cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/Peeja/ctrl-zsh

Other

Just source ctrl-zsh.plugin.zsh from your .zshrc. Or, heck, copy it into your .zshrc. It's only three lines! (But I've got devious plans for more.)

About

Switch in and out of command-line apps with one keystroke: Ctrl-Z

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages