Skip to content
/ zsh-direnv Public
forked from ptavares/zsh-direnv

zsh plugin for installing and loading direnv

License

Notifications You must be signed in to change notification settings

abl/zsh-direnv

 
 

Repository files navigation

pre-commit Release

zsh-direnv

zsh plugin for installing and loading direnv

Inpired by zsh-pyenv

Table of content

This documentation section is generated automatically

Supported Operating system

List of Operating System currently supported by the plugin:

  • 🐧 Linux
    • amd64
    • arm64
  • 🍎 Darwin
    • amd64
    • arm64

Usage

Once the plugin installed, direnv will be available

Bundle zsh-direnv in your .zshrc

antigen bundle ptavares/zsh-direnv

Load zsh-direnv as a plugin in your .zshrc

zplug "ptavares/zsh-direnv"

Include the load command in your .zshrc

zget load ptavares/zsh-direnv

Clone zsh-direnv into your custom plugins repo and load as a plugin in your .zshrc

git clone https://github.com/ptavares/zsh-direnv.git ~/.oh-my-zsh/custom/plugins/zsh-direnv
plugins+=(zsh-direnv)

Keep in mind that plugins need to be added before oh-my-zsh.sh is sourced.

  • Manually

Clone this repository somewhere (~/.zsh-direnv for example) and source it in your .zshrc

git clone https://github.com/ptavares/zsh-direnv ~/.zsh-direnv
source ~/.zsh-direnv/zsh-direnv.plugin.zsh

Updating direnv

The plugin comes with a zsh function to update direnv manually

# From zsh shell
update_zsh_direnv

License

MIT

About

zsh plugin for installing and loading direnv

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 55.3%
  • Makefile 44.7%