Usage examples

Install a tool with LXUP

Then, if you run lxup get, you can see the list of available tools

> lxup get
Please provide a tool name as first argument

Here is the list of available tools from repository samuelroland/productivity
r
cmr
labget
sr
lxup
asm
...

Now you can download or update any script easily just by typing lxup get <tool name>

> lxup get cmr
Checking existance of cmr.fish
Downloading...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3086  100  3086    0     0  24265      0 --:--:-- --:--:-- --:--:-- 24492
Ready! cmr successfully installed.

You can even update lxup itself: lxup get lxup, it is just like other tools actually.

Install r - the play button in your terminal

Note: make sure the r command doesn't exist for something else, such as the R programming language. (If you have this, you may remove it with sudo dnf remove r or sudo apt remove r-base-core).

lxup get r

Install additionnal dependencies, pick one of the following command

# Fedora
sudo dnf install -y entr fd-find
# Ubuntu
sudo apt install -y entr fd-find

If you have a project or language that r supports (C, C++, Rust, cmake, gradle, and much more), go inside and run r.

cd in/my/super/project
r

If you don't have, you can create one with scr (see next section), and you can choose one of the available template

scr

Install scr - the scratch project generator

lxup get scr
nano ~/.config/fish/config.fish

Paste this inside the if, you can choose another folder and editor if you prefer

    set -g SCR_TMP_FOLDER ~/.scratchs
    set -g SCR_EDITOR "code . && code"

Create the folder picked above for SCR_TMP_FOLDER

mkdir ~/.scratchs
source ~/.config/fish/config.fish

Now you can run scr to have a template list to choose from

scr

or directly choose a template as first argument. Here, we are generating a C++ hello world.

> scr cpp
Creating scratch project for cpp inside scratch-cpp-2025-10-12-160228
scratch-cpp-2025-10-12-160228> pwd
/home/sam/.scratchs/scratch-cpp-2025-10-12-160228
scratch-cpp-2025-10-12-160228> cat main.cpp
#include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
    cout << "hello world!" << endl;
    return 0;
}

All templates generated by scr are also supported by r, so just try to run r to start run the generated project.

You can look at scr -h to learn more ways to use this tool :)

Install a tool without LXUP

If you want to skip lxup, you can run the underlying curl command.

set tool sr
mkdir -p ~/.config/fish/functions/ # create folder if it doesn't exist
curl https://codeberg.org/samuelroland/productivity/raw/branch/main/HEIG/tools/$tool.fish -o ~/.config/fish/functions/$tool.fish