Skip to content

Commit

Permalink
put insructions inside .envrc
Browse files Browse the repository at this point in the history
  • Loading branch information
glyh committed Apr 10, 2024
1 parent 7cd5ff9 commit 82cdc91
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .envrc
@@ -1,3 +1,12 @@
#!/usr/bin/env bash

#### Description
# Direnv is a tool for user to separate their shell config into different folder specific profile. When `cd`ing into the `oil` folder, if direnv is allowed to run the script, it will automatically run the `build/dev-shell.sh` script. and dump environment variables into current shell.

#### Usage
# - Install direnv and its shell hook on https://direnv.net/#getting-started
# - cd into git repo root
# - Run `direnv allow`
# - Now whenever you cd into oil repo or one of its subdirs, direnv will load environment variables directly for you.

. build/dev-shell.sh

0 comments on commit 82cdc91

Please sign in to comment.