Linux terminal customization
Most of what makes a terminal feel like yours lives in the shell, not the terminal app. Start there, then tune the emulator.
Linux terminal customization comes in two layers. The shell layer is your prompt, history, completions and plugins; it follows you into any terminal and over SSH. The terminal layer is the font, colours, opacity and key bindings, set in whichever terminal emulator you use. Do the shell first: it's where the daily gains are. This guide works on any distribution and with any terminal, and finishes with Lumen's config as an example.
1. A better prompt with Starship
Starship is a fast prompt that works the same in bash, zsh and fish. It shows the git branch and status, the language version of the project you're in, how long the last command took and whether it failed, and stays quiet otherwise. Install it:
curl -sS https://starship.rs/install.sh | sh
Then add one line to the end of your shell's startup file:
# ~/.bashrc
eval "$(starship init bash)"
# ~/.zshrc
eval "$(starship init zsh)"
# ~/.config/fish/config.fish
starship init fish | source
Configure it in ~/.config/starship.toml. The presets on the Starship site are a good starting point; starship preset plain-text-symbols -o ~/.config/starship.toml gives you a prompt that needs no special font. Oh My Posh is an alternative with a similar approach.
2. Fonts
A good monospace font matters more than a theme. Pick one with clear differences between 0 and O, 1, l and I. JetBrains Mono, Fira Code, Source Code Pro and Iosevka are popular, and most distributions package them (sudo apt install fonts-jetbrains-mono on Ubuntu).
Prompts and tools that show icons need a Nerd Font, a version of a normal font with extra symbols added. To install one for your user:
mkdir -p ~/.local/share/fonts
unzip JetBrainsMono.zip -d ~/.local/share/fonts/JetBrainsMono
fc-cache -f
Then select it by name in your terminal. The terminal fonts guide compares the main options.
3. Colours
Your terminal's theme sets the 16 base colours that programs use, plus the background, foreground and cursor. Pick a theme in the terminal, then let programs follow it rather than theming each one separately. A few extras help:
- ls colours: GNU
ls --color=autousesLS_COLORS;eval "$(dircolors)"sets sensible ones. Tools like eza add icons and git status. - bat: a
catwith syntax highlighting.bat --list-themesshows the options; set one withBAT_THEME. - Light and dark: if you switch between them, pick a theme family with both, such as Rosé Pine and Rosé Pine Dawn.
See terminal themes for popular colour schemes and how they look.
4. Shell plugins
A few plugins cover most of what people install frameworks for.
zsh
Autosuggestions (grey completions from your history) and syntax highlighting are packaged on most distributions. On Debian and Ubuntu:
sudo apt install zsh-autosuggestions zsh-syntax-highlighting
# ~/.zshrc, syntax highlighting last
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Oh My Zsh bundles these and many more, at the cost of a slower start. Try the two plugins alone first.
fish
fish has autosuggestions, syntax highlighting and good completions built in. You need very little on top.
For every shell
- fzf gives fuzzy history search on Ctrl+R and file search on Ctrl+T. With fzf 0.48 or later, add
eval "$(fzf --bash)",source <(fzf --zsh)orfzf --fish | source. - zoxide remembers the folders you use, so
z projjumps to~/code/project. Addeval "$(zoxide init bash)"(orzsh, orzoxide init fish | source).
5. Linux terminal customization in the emulator
Once the shell is set up, the terminal emulator's own settings finish the job: font, theme, opacity, cursor, and keys. Desktop terminals like Ptyxis and Konsole use a preferences window and profiles. kitty, Ghostty, Alacritty, foot and WezTerm use a config file you can keep in your dotfiles. The best Linux terminals page compares how each is configured.
Example: Lumen's config
Lumen writes a commented ~/.config/lumen/config.toml on first run. Changes apply to open panes as soon as you save; a mistake shows in a banner and the rest still applies.
theme = "Tokyo Night"
font-family = "JetBrainsMono Nerd Font"
font-size = 13
line-height = 1.2
background-opacity = 0.92
cursor-style = "beam"
notify-after = 10
plugins = ["git-branch"]
[keys]
ctrl-t = "none"
alt-g = "plugin:git-branch:switch"
- Themes: 24 built in, 8 of them light, each recolouring the window chrome too. Cycle with Ctrl+Shift+Y. Add your own in
~/.config/lumen/themes/, or drop in any Ghostty theme file, and pair a light and a dark one to follow your desktop's dark-style setting. - Fonts: JetBrains Mono and Inter are bundled;
font-familytakes any installed monospace font, Nerd Fonts included. Programming ligatures show when the font has them. - Opacity:
background-opacitygives a blurred, see-through background. It needs a compositor on Linux. - Keys: every binding lives in
[keys]. Setting one to"none"hands the key back to the shell.
Lumen's shell integration loads automatically for bash, zsh and fish and works alongside Starship. The full list of options is in the config docs; install with curl -fsSL https://lumenshell.dev/install | sh.
Questions
How do I customize my Linux terminal?
Start with the shell: install a prompt like Starship, a Nerd Font, and a few plugins such as zsh-autosuggestions, fzf and zoxide. Then set the font, colour theme and opacity in your terminal emulator's preferences or config file.
Do I need Oh My Zsh?
No. Starship for the prompt plus zsh-autosuggestions and zsh-syntax-highlighting covers what most people use Oh My Zsh for, and starts faster. Oh My Zsh is fine if you want its large plugin collection.
Why do icons show as boxes in my terminal?
Your font doesn't include them. Install a Nerd Font, run fc-cache -f, and select that font in your terminal's settings. Or use a Starship preset that avoids icons, like plain-text-symbols.
How do I change the terminal font in Linux?
In Ptyxis, GNOME Terminal and Konsole, edit the profile in Preferences. In config-file terminals, set the font name: font_family in kitty, font-family in Ghostty and Lumen, and family under [font.normal] in Alacritty's TOML.
Try Lumen
Free and open source, for Linux and macOS. Copy the command for your system and paste it into a terminal.