Skip to content

Allow running commands in the root of a plugin directory.

License

Notifications You must be signed in to change notification settings

jandamm/zgenom-ext-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Zgenom Extension for running commands

Allow running commands in the root of a plugin directory.

You need to use it with zgenom.

Example

source "${HOME}/.zgenom/zgenom.zsh"

zgenom autoupdate --background

if ! zgenom saved; then
    zgenom load jandamm/zgenom-ext-run

    # Load git-extras + source completions
    zgenom load tj/git-extras etc/git-extras-completion.zsh
    # Run make for git-extras
    zgenom run tj/git-extras PREFIX=$ZPFX/git-extras make
    # Add generated bins
    zgenom bin $ZPFX/git-extras

    zgenom save
fi

Note: If the repository is a git repository the last hash is saved and the command is only executed when the hash changes. If it's no git repository the command will always be executed.

About

Allow running commands in the root of a plugin directory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages