Skip to content

Instantly share code, notes, and snippets.

@j1n3l0
Last active June 29, 2021 14:40
Show Gist options
  • Save j1n3l0/967edbe21772e2db4265d6b1dffc7049 to your computer and use it in GitHub Desktop.
Save j1n3l0/967edbe21772e2db4265d6b1dffc7049 to your computer and use it in GitHub Desktop.
# shellcheck shell=sh
nodenv() {
if has nodenv; then
export NODENV_VERSION="${1}"
else
echo "direnv: nodenv is not installed"
fi
}
plenv() {
if has plenv; then
export PLENV_VERSION="${1}"
layout perl
# CPAN mirrors to use
export CPAN_MIRROR="http://cpan.metacpan.org/"
export BACKPAN_MIRROR="http://backpan.perl.org/"
export LOCAL_MIRROR="file:///Users/nonyiah/CPAN/"
# cpanm options
export PERL_CPANM_OPT="--local-lib ${PERL_LOCAL_LIB_ROOT} --mirror ${LOCAL_MIRROR} --mirror ${CPAN_MIRROR} --mirror ${PINTO_MIRROR} --mirror ${BACKPAN_MIRROR} --cascade-search --quiet --with-develop"
# path_add PERL5LIB "lib"
# path_add PERL5LIB "t/lib"
else
echo "direnv: plenv is not installed"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment