Skip to content

Instantly share code, notes, and snippets.

@TrentSPalmer
Last active August 1, 2023 00:08
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save TrentSPalmer/63a85b582d42ab4bff665fc2dbba42e2 to your computer and use it in GitHub Desktop.
Save TrentSPalmer/63a85b582d42ab4bff665fc2dbba42e2 to your computer and use it in GitHub Desktop.
fish powerline on ubuntu the easy way

You don't have to install powerline and fonts from github to get fish with powerline. The Ubuntu repo already has some packages. Just install them with apt.

Tested on Ubuntu 17.04

apt install fish powerline

This pulls in fonts-powerline python-powerline python-psutil python3-powerline

add the following lines to ~/.config/fish/config.fish

set fish_function_path $fish_function_path "/usr/share/powerline/bindings/fish"
source /usr/share/powerline/bindings/fish/powerline-setup.fish
powerline-setup

and then start a new instance of fish by typing fish

Presumably if you have a different set up or distro, you can use grep/find to get the above information.

# these commands work with bash or fish
cd /
find -name fish 2>&1 | grep bindings
# which returns
./usr/share/powerline/bindings/fish
# and then
find -name '*.fish' 2>&1 | grep -e 'powerline-setup'
# returns
./usr/share/powerline/bindings/fish/powerline-setup.fish

alt text

@VanillaBase1lb
Copy link

Thank you. Works on Arch without the find/grep.

@rbrtbrnschn
Copy link

it works(ish) on my system.
arch
termite

though it takes precedence over my actual themes, i get a base powerline bar, though when changing themes, it does not.

how do I manage that?

@booboonuu
Copy link

Thank you
This guide is working perfectly to me.

@PiotrGebczyk
Copy link

Thanks, I've been working on it for 2 hours and here are 2 lines of code and it's done

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