Skip to content

Commit

Permalink
Renames DIRENV_PATH to direnv in the stdlib. It's not exported.
Browse files Browse the repository at this point in the history
  • Loading branch information
zimbatm committed Jan 7, 2014
1 parent 2957dde commit 7c2de4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd_stdlib.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var CmdStdlib = &Cmd{

const STDLIB = `# These are the commands available in an .envrc context
set -e
DIRENV_PATH="%s"
direnv="%s"
# Usage: has <command>
#
Expand Down Expand Up @@ -50,15 +50,15 @@ has() {
# # output: /usr/local/foo
#
expand_path() {
"$DIRENV_PATH" expand_path "$@"
"$direnv" expand_path "$@"
}
# Usage: dotenv [<dotenv>]
#
# Loads a ".env" file into the current environment
#
dotenv() {
eval "$("$DIRENV_PATH" dotenv bash "$@")"
eval "$("$direnv" dotenv bash "$@")"
}
# Usage: user_rel_path <abs_path>
Expand Down

0 comments on commit 7c2de4b

Please sign in to comment.