31 lines
788 B
Bash
31 lines
788 B
Bash
# See `direnv stdlib` for special functions provided by _direnv_.
|
|
use asdf
|
|
|
|
# Git
|
|
export GIT_AUTHOR_NAME="Michel"
|
|
export GIT_AUTHOR_EMAIL="michel@none"
|
|
export GIT_COMMITTER_NAME="Michel"
|
|
export GIT_COMMITTER_EMAIL="michel@none"
|
|
|
|
# Node.JS
|
|
lua_node=$(grep -o "nodejs/[.0-9]\\+" init.lua)
|
|
lua_node=${lua_node#nodejs/}
|
|
|
|
asdf_node=$(asdf current nodejs | grep -o "[.0-9]\\{3,\\}")
|
|
|
|
if [ "${lua_node}" != "${asdf_node}" ]; then
|
|
log_error "init.lua expects node.js ${lua_node} but asdf provides ${asdf_node}"
|
|
fi
|
|
|
|
# Python virtual env
|
|
layout python3
|
|
|
|
if (($(echo $(direnv_layout_dir)/python* | wc --words) > 1)); then
|
|
log_error "Found several python environments"
|
|
du -sh .direnv/*
|
|
fi
|
|
|
|
if ! python3 -m pip list | grep pynvim > /dev/null; then
|
|
log_error "python: Missing pynvim module"
|
|
fi
|