Closed xylix closed 3 days ago
Modify fish prompt of the good looking fish prompt to show hostname, but not current user
fish_prompt is a function with definition
# Defined in /home/kerkko/.config/fish/functions/fish_prompt.fish @ line 1
function fish_prompt --description 'Write out the prompt'
set -l last_pipestatus $pipestatus
set -l last_status $status
set -l normal (set_color normal)
# Color the prompt differently when we're root
set -l color_cwd $fish_color_cwd
set -l prefix
set -l suffix '>'
# Write pipestatus
set -l prompt_status (__fish_print_pipestatus " [" "]" "|" (set_color $fish_color_status) (set_color --bold $fish_color_status) $last_pipestatus)
echo -n -s $normal ' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal $prompt_status $suffix " "
end
Not needed
https://fishshell.com/docs/current/tutorial.html