function fish_prompt --description 'Write out the prompt' set -l color_cwd (set_color $fish_color_cwd) set -l color_host (set_color $fish_color_host_remote) set -l reset (set_color normal) set -l hostinfo '' set -l suffix '$' # If we're running via SSH, display the hostname and change color. if set -q SSH_TTY set hostinfo $color_host $USER @ (prompt_hostname) $reset " " end # prompt echo -n -s $hostinfo $color_cwd (prompt_pwd) $reset (git-sonar -f) $reset " " $suffix " " end