1
0
mirror of https://github.com/Tarrasch/zsh-autoenv.git synced 2025-02-22 09:34:44 +02:00
Daniel Hahler 986a7609ff Do not cd in the chpwd hook
This is not really necessary, except for the convenience of being in the
.env file's directory during the hook.
But it messes around with the "cd history", e.g. `cd -`!

To reference the .env file or its directory, `$autoenv_env_file` and
`${autoenv_env_file:h}` can be used instead.
2015-01-17 20:10:41 +01:00
2014-12-18 20:52:52 +01:00
2015-01-17 20:10:41 +01:00
2014-12-02 22:49:01 +01:00
2013-09-08 17:07:38 +02:00
2015-01-17 20:10:41 +01:00

Bitdeli Badge

Build Status

Autoenv for zsh

This is is a zsh optimized version of autoenv

Why a zsh version

  • Auto-completion will work rather than vomit
  • No stupid error messages
  • It's elegant to use the built in chpwd_functions

Installation

Using antigen

antigen-bundle Tarrasch/zsh-autoenv

Manually

Clone the repository and source it from your ~/.zshrc file:

git clone https://github.com/Tarrasch/zsh-autoenv ~/.dotfiles/lib/zsh-autoenv
echo 'source ~/.dotfiles/lib/zsh-autoenv/autoenv.zsh' >> ~/.zshrc

Credits

The code was mostly copied from Joshua Clayton

Languages
Shell 48.1%
Perl 46.7%
Raku 3.5%
Makefile 1.7%