How do I install/make a custom prompt for fish shell?

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

2

2 Answers

~/.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
1

This worked for me:

~/.local/share/omf/init.fish
function fish_prompt echo (pwd) '> '
end
6

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like