Cache autoenv .exit source #10

Closed
opened 2018-05-18 09:22:14 +00:00 by benie · 1 comment
Owner

If a .exit script is [re]moved then it will not be available to be sourceed upon leaving the directory. One way around this would be to cache the .exit scripts contents in a cache or variable and upon leaving the directory evel the the contents. Care would need to be taken to check the modified date of the .exit script, if it still exists, to ensure that the desired commands are invoked.

If a `.exit` script is [re]moved then it will not be available to be `source`ed upon leaving the directory. One way around this would be to cache the `.exit` scripts contents in a cache or variable and upon leaving the directory `evel` the the contents. Care would need to be taken to check the modified date of the `.exit` script, if it still exists, to ensure that the desired commands are invoked.
Author
Owner

This is a rare circunstance and is likely going to break in unexpexted ways. Closing.

This is a rare circunstance and is likely going to break in unexpexted ways. Closing.
benie closed this issue 2024-04-06 22:04:56 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: config/zsh#10
No description provided.