From b9d63d76072ca5dd48d387aad8999a82531a9cf2 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 26 Feb 2017 14:18:44 +1300 Subject: Add plenv scripts Probably worthwhile given I use it on several systems and it's not expensive to check whether it exists. --- sh/profile.d/plenv.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sh/profile.d/plenv.sh (limited to 'sh/profile.d') diff --git a/sh/profile.d/plenv.sh b/sh/profile.d/plenv.sh new file mode 100644 index 00000000..b2b491e1 --- /dev/null +++ b/sh/profile.d/plenv.sh @@ -0,0 +1,5 @@ +# Add plenv to PATH and MANPATH if it appears to be in use +[ -d "$HOME"/.plenv ] || return +PATH=$HOME/.plenv/shims:$HOME/.plenv/bin:$PATH +MANPATH=$HOME/.plenv/versions/$(perl -e 'print substr($^V,1)')/man:$MANPATH +export MANPATH -- cgit v1.2.3