diff --git a/README.md b/README.md index 9a0a770c..a1bafe04 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: in a shell, add symlink `/rockstree` pointing to the LuaRocks tree + [#402](https://github.com/Kong/kong-pongo/pull/402). + --- ## 2.6.0 released 23-Mar-2023 diff --git a/assets/pongo_profile.sh b/assets/pongo_profile.sh index e1f41669..e40a41e1 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/ /rockstree +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