Tarrasch / zsh-autoenv

Autoenv for zsh
700 stars 30 forks source link

Only source varstash lib if it's being used #42

Closed blueyed closed 8 years ago

blueyed commented 8 years ago

I have noticed that autostash called an (accidentally) defined/overwritten stash function.

While it's not possible to put this into a local scope, this will at least make it less polluting by default (when autostashing is not used).

Additionally we could source it always (not just once), but then it would only re-overwrite the function.

A better fix would be to prefix the functions explicitly, e.g. autoenv_autostash etc.

Tarrasch commented 8 years ago

To be honest I haven't used any of the autostash stuff yet. I don't know where to begin to review ^^

blueyed commented 8 years ago

Don't worry, merged it.. :)