cancel
Showing results for 
Search instead for 
Did you mean: 

Could we have 'less' in the new Code-OSS-powered SAP Business Application Studio?

laszlo_kajan2
Active Participant
206

After the roll-out of the new Code-OSS-powered SAP Business Application Studio (see liat.borenshtein's post), 'less' seems to be missing from the terminal:

Is there a way to get it back?

Accepted Solutions (1)

Accepted Solutions (1)

YuvalA
Product and Topic Expert
Product and Topic Expert

we are on it, will be soon available.

Thanks, Yuval

Answers (1)

Answers (1)

laszlo_kajan2
Active Participant
0 Kudos

Perhaps not the simplest, but the following works:

  1. Compile 'less' statically on a suitable machine, e.g. Debian:
    1. apt-get build-dep less
    2. apt-get source less
    3. cd <dir-with-less-sources>
    4. ./configure LDFLAGS="-static"
    5. make
  2. Copy the resulting less* executables to your Business Application Studio (BAS) dev space, e.g. by dragging the files to the 'Explorer' panel of the BAS.
  3. Copy less* to ~/bin, and make the files executable: mkdir -p ~/bin && cd ~/bin && chmod +x less*
  4. Add the following to ~/.bashrc, as the 'bash' terminal seems to be invoked as a non-login shell, therefore skipping ~/.profile:
    # set PATH so it includes user's private bin if it exists
    if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
    fi
    export GIT_PAGER="$HOME/bin/less"