direnv

unclutter your .profile

MIT License

Downloads
41
Stars
12.4K
Committers
223

Bot releases are hidden (Show)

direnv -

Published by zimbatm about 7 years ago

  • NEW: stdlib: configurable direnv_layout_dir
  • CHANGE: stdlib: source the direnvrc directly
  • FIX: permit empty NODE_VERSION_PREFIX variable
  • FIX: pwd: Don't use -P to remove symlinks (#295)
  • FIX: also reload when mtime goes back in time
  • FIX: Prevent $HOME path from being striked (#287)
  • BUILD: use the new dep tool to manage dependencies
  • BUILD: dotenv: move to vendor folder
direnv -

Published by zimbatm over 7 years ago

  • stdlib layout_python: fixes on no arg
direnv -

Published by zimbatm over 7 years ago

  • FIX: stdlib path_add(), see #278
  • FIX: install from source instructions
direnv -

Published by zimbatm over 7 years ago

  • NEW: support multiple items in path_add and PATH_add (#276)
  • NEW: add a configurable DIRENV_WARN_TIMEOUT option (#273)
  • CHANGE: rewrite the dotenv parsing, now supports commented lines
  • CHANGE: pass additional args to virtualenv (#261)
  • FIX: stdlib watch_file(): escaping fix
  • FIX: only output color if $TERM is not dumb (#264)
  • FIX: the watch_file documentation
direnv - https://github.com/direnv/direnv/releases/tag/v2.11.3

Published by zimbatm over 7 years ago

direnv - https://github.com/direnv/direnv/releases/tag/v2.11.1

Published by zimbatm over 7 years ago

direnv - https://github.com/direnv/direnv/releases/tag/v2.11.0

Published by zimbatm over 7 years ago

direnv - https://github.com/direnv/direnv/releases/tag/v2.10.0

Published by zimbatm almost 8 years ago

direnv - https://github.com/direnv/direnv/releases/tag/v2.9.0

Published by zimbatm over 8 years ago

direnv -

Published by zimbatm over 8 years ago

This release just fixes the automatic Travis binary builds

direnv - Long overdue

Published by zimbatm over 8 years ago

Thanks again to the community for providing improvements and ideas. This time we have 4 new exciting features. Enjoy !

Changes:

  • NEW: direnv export json to facilitate IDE integration by @zimbatm
  • NEW: watch functionality thanks to @avnik
    Now direnv also reload on associate .env and .envrc changes.
  • NEW: stdlib watch_file function thanks to @avnik
    Allows to monitor more files for change.
  • NEW: stdlib use node function thanks to @wilmoore
  • NEW: direnv prune to remove old allowed files thanks to @punitagrawal
    Only works with newly-generated files since we're not storing the path
    inside of them.
direnv -

Published by zimbatm about 9 years ago

This release adds integration with the Nix package manager thanks to @gfxmonk . It's now possible to use Nix to describe all of a project dependencies and have direnv load them into the environment.

Example: use nix or use nix -p ruby

  • NEW: use_nix() helper to stdlib. Thanks @gfxmonk
  • FIX: Added SHELLOPTS to ignored vars. Thanks @fernandomora
  • FIX: Removed shellcheck offenses in the stdlib, better escaping
  • FIX: typos. Thanks @camelpunch, @oppegard
direnv - TCSH joins the family

Published by zimbatm over 9 years ago

Yet anoter long overdue release. Direnv keeps going forward thanks to his contributors. It's great, I don't have to do anything anymore !

I've very happy to report that @bbense has added support for the tcsh shell to direnv bringing the total of supported shells up to 4. I hope it will please old-school BSD users out there.

Compatibility issues with tmux came up a couple of times and I think we have a good-enough workaround for the moment. The issue is that tmux messes with the environment variables in very weird way so the solution is to unload direnv before executing tmux: alias tmux='direnv exec / tmux' (or fix tmux if you feel like it)

  • NEW: tcsh is now supported ! Thanks @bbense
  • CHANGE: direnv dump now ignores BASH_FUNC_ exports. Thanks @gfxmonk
  • CHANGE: Interactive input during load is now possible. Thanks @toao
  • FIX: allow workaround for tmux users: alias tmux='direnv exec / tmux'
  • FIX: hardened fish shell escaping thanks to @gfxmonk

Thanks @bbense @vially and @dadooda for corrections in the docs

direnv - Python edition

Published by zimbatm almost 10 years ago

All changes in how direnv handles python layouts.

You can now specify the python executable to the layout python directive and virtualenvs are now creates under ./.direnv/python-$VERSION. Note that existing ./.direnv/virtualenv will keep being used if they exist so that you don't have to re-install all your projects.

  • NEW: Use a different virtualenv per python versions for easier version switching. Eg: ./.direnv/python-${python_version}
  • NEW: Makes layout python3 a shortcut for layout python python3. Thanks
    @ghickman !
  • NEW: Allows to specify which executable of python to use in layout_python
  • CHANGE: layout python now unsets $PYTHONHOME to better mimic virtualenv
  • CHANGE: Don't make virtualenvs relocatable. Fixes #137
  • OTHER: Use Travis to push release builds to github
direnv - Cygwin, perl, vim integration

Published by zimbatm over 10 years ago

Time flies, I wanted to make a release every month.

This release sees the addition of Cygwin support thanks to @CMCDragonkai. Window integration is a bit tricky but apparently cygwin emulates most of the hard things. A windows milestone has been added if you want to help with this.

@halkeye contributed a nice layout perl addition to the stdlib. It sets the LOCAL_LIB_DIR and a couple of other perl-specific environment variables to ./.direnv/perl5 to make your own per-project sandbox for CPAN packages.

vim integration has also been added. It's still quite buggy but I thought it might be nice to play with it. If you're interested have a look at https://github.com/zimbatm/direnv.vim

@punitagrawal has also started publishing debian packages for sid which makes me very happy.

Everyone, thank you for your help in this release !

Installation

Installation is a three-step operation:

  1. Get the direnv binary into your PATH (eg: put it in /usr/local/bin)
  2. Install the hook for your shell
  3. Restart your shell

OSX

brew install direnv

Debian SID

A debian package is available for Debian SID thanks to Punit Agrawal

https://packages.debian.org/sid/direnv

Arch linux (WIP)

Get the AUR here: https://aur.archlinux.org/packages/direnv/

NixOS (WIP)

nix-env -i direnv

Other

Grab the binaries corresponding to your OS an put it in your $PATH (eg:
/usr/local/bin). Make sure the binary has the executable flag set by running
chmod +x direnv.

Also note that the windows binaries are untested at this stage.

Happy hacking !

direnv - exec away

Published by zimbatm over 10 years ago

Big thanks to gfxmonk again, this time for submitting the DIRENV_LOG_FORMAT change that allows users to change the log output. Direnv's output is still not very pretty but it's
starting to get better. Example: export DIRENV_LOG_FORMAT='📁 %s'

We also have a new direnv exec [DIR] <COMMAND> ... command spearheaded by
pwaller which allows to execute commands in
the context of an env. bencolon provided us
with a usage example for his sublime text plugin:
https://github.com/zimbatm/direnv/pull/97#issuecomment-33840368

Both new feature lack in documentation and in general documentation is still a
big issue. It's hard to write and takes time to maintain. Next month I'll be
focusing on that, hopefully making it easier for non-gurus to join the
project.

Changelog

  • NEW: DIRENV_LOG_FORMAT environment variable can be used tocontrol log formatting
  • NEW: direnv exec [DIR] <COMMAND> to execute programs with an .envrc context
  • CHANGE: layout_python now tries to make your virtualenv relocatable
  • CHANGE: the export diff is not from the old env, not the current env
  • CHANGE: layout_go now also adds $PWD/bin in the PATH
  • FIX: Hides the DIRENV_ variables in the output diff. Fixes #94
  • FIX: Makes sure the path used in the allow hash is absolute. See #95
  • FIX: Set the executable bit on direnv on install
  • FIX: Some bash installs had a parse error in the hook.

Installation

Installation is a three-step operation:

  1. Get the direnv binary into your PATH (eg: put it in /usr/local/bin)
  2. Install the hook for your shell
  3. Restart your shell

OSX

brew install direnv

Debian SID

A debian package is available for Debian SID thanks to Punit Agrawal

https://packages.debian.org/sid/direnv

Arch linux

Get the AUR here: https://aur.archlinux.org/packages/direnv/

NixOS

nix-env -i direnv

Other

Grab the binaries corresponding to your OS an put it in your $PATH (eg:
/usr/local/bin). Make sure the binary has the executable flag set by running
chmod +x direnv.

Also note that the windows binaries are untested at this stage.

Happy hacking !

direnv - oops release

Published by zimbatm over 10 years ago

Release 2.2.0 has been yanked because it was highly unstable. Below is the
release notes for 2.2.0, 2.2.1 just renamed DIRENV_BACKUP to DIRENV_DIFF and
fixes the regresssion.


A lot of small changes that should just make the day to day usage nicer. As
usual if you see something you don't like just
let me know !

Also a big thanks to
Tim Cuthbertson aka. gfxmonk for his
participation in the last months.

Installation

Installation is a three-step operation:

  1. Get the direnv binary into your PATH (eg: put it in /usr/local/bin)
  2. Install the hook for your shell and restart it.

Mac

brew install direnv

Arch linux

Get the AUR here: https://aur.archlinux.org/packages/direnv/

NixOS

nix-env -i direnv

Other

Grab the binaries corresponding to your OS an put it in your $PATH (eg:
/usr/local/bin). Make sure the binary has the executable flag set by running
chmod +x direnv.

Also note that the windows binaries are untested at this stage.

direnv - it's already spring in the UK

Published by zimbatm almost 11 years ago

A lot of small changes that should just make the day to day usage nicer. As
usual if you see something you don't like just
let me know !

Also a big thanks to
Tim Cuthbertson aka. gfxmonk for his
participation in the last months.

Installation

Installation is a three-step operation:

  1. Get the direnv binary into your PATH (eg: put it in /usr/local/bin)
  2. Install the hook for your shell and restart it.

Mac

brew install direnv

Arch linux

Get the AUR here: https://aur.archlinux.org/packages/direnv/

NixOS

nix-env -i direnv

Other

Grab the binaries corresponding to your OS an put it in your $PATH (eg:
/usr/local/bin). Make sure the binary has the executable flag set by running
chmod +x direnv.

Also note that the windows binaries are untested at this stage.

direnv - v2.1.0 - fish shell edition

Published by zimbatm almost 11 years ago

This version brings support for the fish shell and a
couple of misc fixes.

For the new fish shell users out there, once installed add the following line
at the end of your "~/.config/fish/config.fish" file:

eval (direnv hook fish)

OS X

This requires Homebrew to be installed.

brew install direnv

Arch Linux

AUR available: https://aur.archlinux.org/packages/direnv/

If you have yaourt installed just run:

yaourt -S direnv

Nix / NixOS

(still waiting to be merged, see NixOS/nixpkgs#1232)

Make sure your nixpkgs channel is up to date and then run:

nix-env -i direnv

Other OSes / Binaries

Just take the corresponding binary and put in in your $PATH :