Last active
June 29, 2021 14:40
-
-
Save j1n3l0/967edbe21772e2db4265d6b1dffc7049 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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