Enjoy Fedora Command Line Input (CLI) colors? Apply it quickly to your Ubuntu and Debian machines
Published: Nov 10, 2025
I recently installed Fedora and loved the CLI color combinations (vibrant!). I wanted to apply it to Ubuntu and Debian (Proxmox) servers so here are the commands, just copy paste it into your cli.1:
The script
#!/bin/bash
# Apply Fedora-like CLI colors and prompt on Ubuntu
# Backup existing configuration
cp ~/.bashrc ~/.bashrc.bak.$(date +%s)
# Append Fedora-style prompt and color aliases
cat <<'EOF' >> ~/.bashrc
# ==== Fedora-style CLI color scheme ====
# Enable color support for ls and grep
export LS_OPTIONS='--color=auto'
eval "$(dircolors -b ~/.dircolors 2>/dev/null || dircolors -b)"
alias ls='ls $LS_OPTIONS'
alias ll='ls -l $LS_OPTIONS'
alias l='ls -lA $LS_OPTIONS'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Fedora-style prompt
if [ -n "$PS1" ]; then
if [ "$(id -u)" -eq 0 ]; then
PS1='[\033[01;31m]\h[\033[00m]:[\033[01;34m]\w[\033[00m]# '
else
PS1='[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m]\$ '
fi
fi
# Optional: Fedora-like LS_COLORS palette
if [ ! -f ~/.dircolors ]; then
wget -q -O ~/.dircolors https://raw.githubusercontent.com/trapd00r/LS_COLORS/master/LS_COLORS
fi
# ==== End Fedora-style CLI ====
EOF
# Reload configuration
source ~/.bashrc
echo "Fedora color scheme applied. Run 'source ~/.bashrc' if not already active."
😚
-
Tested on Ubuntu 22.04.3 LTS and Debian 13.1. ↩︎