dotfiles/.config/fish/functions/fish_prompt.fish

17 lines
467 B
Fish
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

function fish_prompt --description 'Write out the prompt'
set -l normal (set_color normal)
# TODO: Changer couleur du suffixe si erreur
# TODO: Changer couleur du suffixe si root?
set -l prefix
set -l suffix ''
# If we're running via SSH, change the host color.
set -l color_host $fish_color_host
if set -q SSH_TTY
set color_host $fish_color_host_remote
end
echo -n -s (set_color magenta) $suffix $normal " "
end