diff --git a/data/distro.yml b/data/distro.yml index 403a839..94550e2 100644 --- a/data/distro.yml +++ b/data/distro.yml @@ -19,9 +19,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -33,9 +31,7 @@

Flatpak is installed by default on Fedora Workstation, Fedora Silverblue, and Fedora Kinoite. To get started, all you need to do is enable Flathub, which is the best way to get Flatpak apps. Just download and install the Flathub repository file.

Now all you have to do is install some apps!

The above links should work on the default GNOME and KDE Fedora installations, but if they fail for some reason you can manually add the Flathub remote by running:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - name: Manjaro logo: "manjaro.svg" @@ -70,16 +66,12 @@ - name: Install Flatpak text: '

To install Flatpak, run the following in the terminal:

- - sudo apt install flatpak - + sudo apt install flatpak

A more up to date flatpak package is available in the Debian backports repository.

' - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart Linux. You can do this by right-clicking terminal, and then clicking "Shut down Linux". Now all you have to do is install some apps!

' @@ -93,9 +85,7 @@ sudo yum install flatpak

Now all you have to do is install some apps!

The above links should work on the default Red Hat Enterprise Linux Workstation 9 installation, but if they fail for some reason you can manually add the Flathub remote by running:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - name: Linux Mint logo: "mint.svg" @@ -115,9 +105,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -149,9 +137,7 @@ - name: Add the Flathub repository text: '

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - ' + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo' - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -166,9 +152,7 @@ - name: Add the Flathub repository text: '

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - ' + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo' - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -203,9 +187,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -227,19 +209,13 @@ - name: Install the Discover Flatpak backend text: "

The Flatpak plugin for the Software app makes it possible to install apps without needing the command line (available on Kubuntu 18.04 and newer). To install on 20.04 or later, run:

- - sudo apt install plasma-discover-backend-flatpak - + sudo apt install plasma-discover-backend-flatpak

On Kubuntu 18.04, you should run this instead:

- - sudo apt install plasma-discover-flatpak-backend - " + sudo apt install plasma-discover-flatpak-backend" - name: Add the Flathub repository text: '

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - ' + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo' - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -254,9 +230,7 @@ - name: Add the Flathub repository text: '

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - ' + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo' - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -278,9 +252,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete the setup, restart your system. Now all you have to do is install some apps!

' @@ -297,9 +269,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -318,9 +288,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, download and install the Flathub repository file or run the following in a terminal:

- - flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -341,15 +309,11 @@ - name: Install Flatpak text: "

A flatpak package is available in Raspberry Pi OS (previously called Raspbian) Stretch and newer. To install it, run the following as root:

- - apt install flatpak - " + apt install flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Important note: As of March 2021, Raspberry Pi computers still ship with the 32-bit version of Raspberry Pi OS. However Flathub started phasing out support for that architecture. If you consider Flathub as an important source of applications, it is recommended to use Raspberry Pi OS 64-bit as newer applications are more likely to be available for that platform.

" - name: Restart text: @@ -360,9 +324,7 @@ logo: "clearlinux.svg" introduction: >

Flatpak is installed and Flathub repository is pre-configured by default on Clear Linux when installing the desktop bundle.

- - sudo swupd bundle-add desktop - + sudo swupd bundle-add desktop

Now all you have to do is install some apps!

- name: Void Linux @@ -376,9 +338,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -389,20 +349,14 @@ - name: Install Flatpak text: "

To install Flatpak, set NixOS option services.flatpak.enable to true by putting the following into your /etc/nixos/configuration.nix:

- - services.flatpak.enable = true; - + services.flatpak.enable = true;

Then, rebuild and switch to the new configuration with:

- - sudo nixos-rebuild switch - + sudo nixos-rebuild switch

For more details see the NixOS documentation.

" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -426,9 +380,7 @@ ymp install flatpak\n

No emerge way

- - ymp install flatpak --no-emerge - ' + ymp install flatpak --no-emerge' - name: Enable services text: '

To enable services on Turkman Linux, run the following in a terminal:

@@ -440,9 +392,7 @@ - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -455,15 +405,11 @@ - name: Install Flatpak text: "

To install Flatpak on Ataraxia Linux, run the following in a terminal:

- - sudo neko em flatpak - " + sudo neko em flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -480,15 +426,11 @@ - name: Install Flatpak text: "

To install Flatpak on Deepin, run the following in a terminal:

- - sudo apt install flatpak - " + sudo apt install flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Install the Deepin themes text: '

To install light and dark themes, run:

@@ -506,22 +448,16 @@ - name: Install Flatpak text: '

A flatpak package is available in Pardus 2019 and newer. To install it, run the following as root:

- - apt install flatpak - + apt install flatpak

For Pardus 2017 and older versions, a flatpak package is available in the official backports repository.

' - name: Install the Software Flatpak plugin text: "

If you are running GNOME, it is also a good idea to install the Flatpak plugin for GNOME Software. To do this, run:

- - apt install gnome-software-plugin-flatpak - " + apt install gnome-software-plugin-flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

' @@ -545,15 +481,11 @@ - name: Install Flatpak text: "

A flatpak package is available in Pisi 2.1 and newer. To install it, run the following as root:

- - sudo pisi it flatpak - " + sudo pisi it flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -566,19 +498,13 @@ - name: Install Flatpak text: "

To install Flatpak on EndeavorOS, you must first make sure your installation is up to date, run the following in a terminal:

- - sudo pacman -Syu - + sudo pacman -Syu

Then install Flatpak:

- - sudo pacman -S flatpak - " + sudo pacman -S flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

@@ -602,15 +528,11 @@ - name: Install Flatpak text: "

To install Flatpak on GNU Guix, run the following in a terminal:

- - guix install flatpak - " + guix install flatpak" - name: Add the Flathub repository text: "

Flathub is the best place to get Flatpak apps. To enable it, run:

- - flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo - " + flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo" - name: Restart text: '

To complete setup, restart your system. Now all you have to do is install some apps!

diff --git a/source/javascripts/command.js b/source/javascripts/command.js index c018e4f..45ebfce 100644 --- a/source/javascripts/command.js +++ b/source/javascripts/command.js @@ -12,7 +12,7 @@ class TerminalCommand extends HTMLElement { connectedCallback() { const commands = this.textContent .trim() - .split("\\n") + .split(/\n|\\n/) .map((command) => command.trim()) .filter(Boolean);