15

I'm using fish 2.0 on Linux, but this might be an installation error, since my ~/.config/fish/config.fish is empty.

3 Answers3

20

~/.config/fish/config.fish is empty by default. To create a custom prompt create a file ~/.config/fish/functions/fish_prompt.fish and fill it with your prompt.

Basic example

function fish_prompt
        echo (pwd) '> '
end
Jawa
  • 3,679
chicken
  • 475
0

I make a alternative prompt if starship prompt dosen't exist.

# default prompt
function fish_prompt
  echo ''
  set_color cyan; echo (pwd) 
  set_color green; echo '> '
end

starship prompt

if type -q starship starship init fish | source else fish_prompt end

-2

This worked for me:

~/.local/share/omf/init.fish

function fish_prompt
        echo (pwd) '> '
end
Gareth
  • 19,080