envrc: improve

- add shellcheck hint
- load .envrc.local if one exists
- use a variable to allow choosing the shell variant

Change-Id: Iea34e5a800f5d463e5792020c5c293b8b3071ca5
This commit is contained in:
Ilya K 2024-03-26 19:25:27 +03:00
parent 531b8d0ab8
commit 312cee142a
2 changed files with 4 additions and 1 deletions

4
.envrc
View file

@ -1 +1,3 @@
use flake # shellcheck shell=bash
source_env_if_exists .envrc.local
use flake ".#${LIX_SHELL_VARIANT:-default}" "${LIX_SHELL_EXTRA_ARGS[@]}"

1
.gitignore vendored
View file

@ -147,6 +147,7 @@ result-*
.vscode/ .vscode/
.direnv/ .direnv/
.envrc.local
# clangd and possibly more # clangd and possibly more
.cache/ .cache/