Skip to content

S0ME2/CustomizeFish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

🪄 Make Your Linux Terminal Look Amazing

Using Fish Shell + Oh My Posh

While the default Linux terminal prompt can be a bit plain, you can easily transform it into something beautiful and informative.
This documentation will guide you through setting up the Fish shell with Oh My Posh to create a powerful, visually appealing, and highly personalized terminal experience.


🐟 Introduction

Fish shell (Friendly Interactive Shell) is a user-friendly shell with:

  • 🧠 Autosuggestions
  • 🎨 Syntax highlighting
  • ⚙️ Easy scripting

It’s powerful, intuitive, and perfect for both beginners and advanced users.

Oh My Posh is a universal prompt theme engine that works with any shell.
It provides stunning, customizable prompts showing details like Git status, system info, battery, and more.

After following this guide, you’ll have a fully functional, beautiful Linux terminal that reflects your style and improves productivity.
Get ready to rock your shell—with some handy aliases too!


⚙️ Step 1: Install Fish Shell

🧩 Ubuntu / Debian / Linux Mint

sudo apt install fish -y

🧩 Fedora

sudo dnf install fish -y

🧩 Arch Linux / Manjaro Linux

sudo pamac -S fish --noconfirm

🐚 Step 2: Change Default Shell to Fish

To make Fish your default shell:

chsh -s /usr/bin/fish

Then start Fish manually:

fish

⚙️ Step 3: Install Oh My Posh

Download and install the latest Linux binary:

sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh

This installs Oh My Posh globally so it can be used from any shell.


🎨 Step 4: Download and Install Fonts

Oh My Posh themes require Nerd Fonts to display icons properly.

Create fonts directory:

mkdir -p $HOME/.local/share/fonts

Download FiraCode Nerd Font:

wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/FiraCode.zip -O $HOME/Downloads/firacode.zip
unzip $HOME/Downloads/firacode.zip -d $HOME/.local/share/fonts

Update font cache:

fc-cache -f -v

🧠 Step 5: Set Terminal Font

Change your system Monospace Text Font to FiraCode Nerd Font Mono.

If you’re using GNOME, install GNOME Tweaks:

Ubuntu / Debian / Linux Mint

sudo apt install gnome-tweaks -y

Fedora

sudo dnf install gnome-tweaks -y

Arch / Manjaro

sudo pamac -S gnome-tweaks --noconfirm

Then open GNOME Tweaks → Fonts → Monospace Text and select FiraCode Nerd Font Mono.


🧩 Step 6: Download and Install Oh My Posh Themes

mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip

Each .omp.json file inside this directory is a theme configuration.


📝 Step 7: Configure Fish Shell

Edit your Fish configuration file:

Open with gedit:

gedit $HOME/.config/fish/config.fish

Or nano:

nano $HOME/.config/fish/config.fish

Add the following line at the bottom:

oh-my-posh init fish --config $HOME/.poshthemes/montys.omp.json | source

💡 Replace montys.omp.json with your desired theme.


🌈 Step 8: Change Terminal Color Scheme

To enhance visuals, change your terminal color scheme.

Example:
Choose Everforest Dark Hard.


🔄 Step 9: Apply and Verify

Reload your Fish configuration:

. ~/.config/fish/config.fish

If your GNOME Terminal doesn’t load Fish as the default shell, log out and back in again.
After that, your terminal will start with Fish automatically.


👀 Step 10: Explore Themes

List all installed themes:

ls ~/.poshthemes

Preview all official Oh My Posh themes at:
👉 https://ohmyposh.dev/docs/themes


✅ Done!

You now have Fish shell and Oh My Posh fully configured on Linux 🎉
Enjoy your beautiful, efficient, and informative terminal.


📚 References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors