From 0a35d173d37cce438052e0b5f6e991b21c275f03 Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Tue, 23 May 2023 16:51:21 +0200 Subject: [PATCH] feat(shell): add symlink to rocktree "/rocktree" --- README.md | 3 +++ assets/pongo_profile.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 9a0a770c..f5198275 100644 --- a/README.md +++ b/README.md @@ -819,6 +819,9 @@ The result should be a new PR on the Pongo repo. * Feat: the 'kms' alias will now confirm importing a file if found [#393](https://github.com/Kong/kong-pongo/pull/393). +* Feat: add symlink `/rocktree` pointing to the LuaRocks tree + [#393](https://github.com/Kong/kong-pongo/pull/393). + --- ## 2.6.0 released 23-Mar-2023 diff --git a/assets/pongo_profile.sh b/assets/pongo_profile.sh index e1f41669..88226f62 100755 --- a/assets/pongo_profile.sh +++ b/assets/pongo_profile.sh @@ -11,6 +11,10 @@ alias kdbl='/pongo/kong_start_dbless.sh' alias kx='/pongo/kong_export.sh' alias kauth='. /pongo/kong_setup_auth.sh' +if [ -d /usr/local/share/lua/5.1/ ]; then + ln -s /usr/local/share/lua/5.1/ /rocktree +fi + # We want this to output without expanding variables # shellcheck disable=SC2016 echo 'PS1="\[\e[00m\]\[\033[1;34m\][$PS1_KONG_VERSION:\[\e[91m\]$PS1_REPO_NAME\$(/pongo/parse_git_branch.sh)\[\033[1;34m\]:\[\033[1;92m\]\w\[\033[1;34m\]]$\[\033[00m\] "' >> /root/.bashrc