Skip to content
Jean-Philippe Roemer edited this page Mar 2, 2016 · 2 revisions

Before installing fishline make sure you have a Powerline's compatible font installed and selected for your terminal. If you don't see Fonts Installation section of the Powerline documentation.

Clone fishline where you want, for example here in ~/.config/fish/fishline:

git clone https://github.com/0rax/fishline.git/ ~/.config/fish/fishline

Now set this path as your FLINE_PATH in your config.fish and source fishline.fish.

set FLINE_PATH $HOME/.config/fish/fishline
source $FLINE_PATH/fishline.fish

You can now call the fishline function with your last status ($status) with the -s option in your fish_prompt function to sue fishline

function fish_prompt
    fishline -s $status
end

Now that fishline is installed you might want to customize it, you can find all the information required to do so in the Configuration section of this wiki.


##### Fishline usage

SYNOPSIS
    fishline -s <status> [-l|-r] [<segment> [<segment> [...]]]

OPTIONS
    -s <status>     pass the status of the last command
    -l              ask fishline to print a fish_prompt compatible output
    -r              ask fishline to print a fish_right_prompt compatible output