Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Tarrasch/zsh-i-know

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zsh-i-know

Avoid catastrophes like accidentally running rm -rf .giit

Usage

The only command is ik. It basically just opens a interactive (y/n) prompt. If you say n. It'll return with a non-zero exit code. So just chain ik with && dangerous-command. Like this:

$ ik && rm -f important-file.txt && echo 'Yay! File deleted'
Are you sure you want to do this? (y/n)
Yay! File deleted

Or for extra security

$ ik <current-dir> && ik && rm -f important-file.txt && echo 'Yay! File deleted'
Are you sure you want to do this? (y/n)
Yay! File deleted

Installation

Using antigen

antigen-bundle Tarrasch/zsh-i-know

About

Avoid catastrophes like accidentally running `rm -rf .giit`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages