From 95b5201c12471f1885240239b23214609fb0e427 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 2 Oct 2020 12:59:47 -0300 Subject: Feature: add local gems into PATH --- profile.dot.link | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/profile.dot.link b/profile.dot.link index 81253fd..22c577d 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -89,6 +89,15 @@ if [ -e "$HOME/apps/go" ]; then PATH="$GOPATH/bin:$PATH" fi +# Add local gems into PATH +if which gem &> /dev/null; then + LOCAL_GEMPATH="`gem environment gempath | cut -d : -f 1`/bin" + + if [ -d "$LOCAL_GEMPATH" ]; then + PATH="$LOCAL_GEMPATH:$PATH" + fi +fi + # Add local NixOS into PATH if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh -- cgit v1.2.3