Skip to content

Commit

Permalink
Merge pull request #240 from hyperupcall/hyperupcall-doc-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall authored Sep 30, 2024
2 parents c3699a4 + 2f05b4a commit 90241f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ _Before_ `source`ing `activate.sh`, you can set the following variables:
- `AUTOENV_VIEWER`: Program used to display env files prior to authorization; defaults to `cat` (`master` branch only)
- `AUTOENV_PRESERVE_CD`: Set this variable to a non-empty string to prevent the `cd` builtin from being overridden (to active autoenv, you must invoke `autoenv_init` within a `cd` function of your own) (`master` branch only)

### API

Inside the `.env` file, two _environment variables_ can be accessed:

- `AUTOENV_CUR_FILE` - The file being sourced
- `AUTOENV_CUR_DIR` - Equivalent to `dirname "$AUTOENV_CUR_FILE"`

## Shells

autoenv is tested on:
Expand Down

0 comments on commit 90241f1

Please sign in to comment.