FISH: Configuration pour ce nouveau SHELL (en cours de test)

This commit is contained in:
2020-04-26 17:23:28 +02:00
parent ab2f042909
commit bd1041a3f6
12 changed files with 463 additions and 0 deletions

View File

@ -0,0 +1,16 @@
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