Skip to content

Instantly share code, notes, and snippets.

@Drarig29
Created August 19, 2021 11:36
Show Gist options
  • Save Drarig29/d2dbf0e432780cbf0ef504cec833d237 to your computer and use it in GitHub Desktop.
Save Drarig29/d2dbf0e432780cbf0ef504cec833d237 to your computer and use it in GitHub Desktop.
Neofetch custom Manjaro distro name. Result: Manjaro Linux 21.1 "Pahvo"
...
# 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\""
...
@Drarig29
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment