8000 GitHub - k1LoW/execop: ExeCop is a checker that check commands and environment variables before execute command.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ execop Public

ExeCop is a checker that check commands and environment variables before execute command.

License

Notifications You must be signed in to change notification settings

k1LoW/execop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExeCop

ExeCop is a checker that check commands and environment variables before execute command.

demo

Install

If you use Zsh, add the following line to your .zshrc

. /path/to/execop.zsh

If you use Bash, add the following line to your .bashrc

. /path/to/execop.bash

Usage

Put .execop file to /path/to/dir like .htaccess.

.execop file looks like following code

deny when command_match destroy
confirm when command_match rm
confirm when env_eq AWS_PROFILE=production

.execop file format

deny when command_match destroy
[action] when [matcher] [command or environment value]
action
deny deny command if macther match
confirm insert yes/no confirm if macther match
matcher
command_match command ~= value
command_not_match ! command ~= value
command_eq command = value
command_not_eq command != value
env_eq $SOMEENV = value
env_not_eq $SOMEENV != value

About

ExeCop is a checker that check commands and environment variables before execute command.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0