Created
August 19, 2021 11:36
-
-
Save Drarig29/d2dbf0e432780cbf0ef504cec833d237 to your computer and use it in GitHub Desktop.
Neofetch custom Manjaro distro name. Result: Manjaro Linux 21.1 "Pahvo"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# Distro | |
DISTRO_NAME=$(lsb_release -sd | sed -e 's/"//g') | |
DISTRO_VERSION=$(lsb_release -sr | sed -e 's/.0$//g') | |
DISTRO_CODENAME=$(lsb_release -sc) | |
# Override distro name | |
# | |
# Example: | |
# Manjaro Linux 21.1 "Pahvo" | |
distro="$DISTRO_NAME $DISTRO_VERSION \"$DISTRO_CODENAME\"" | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the distro name doesn't suit us (
OS:
line), thanks to this line:https://github.com/dylanaraps/neofetch/blob/7.1.0/neofetch#L954
...we can override the
$distro
variable.So just put this attached extract of config in your
.config/neofetch/config.conf
file.