fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
867946468
master
1# localization: tier1 2function prompt_login --description"display user name for the prompt" 3if not set -q __fish_machine 4set -g __fish_machine 5set -l debian_chroot$debian_chroot 6 7if test -r /etc/debian_chroot 8set debian_chroot( cat /etc/debian_chroot) 9end 10 11if set -q debian_chroot[ 1 ] 12and test -n " $debian_chroot " 13set -g __fish_machine"(chroot: $debian_chroot )" 14end 15end 16 17# Prepend the chroot environment if present 18if set -q __fish_machine[ 1 ] 19echo -n -s( set_color yellow) " $__fish_machine " ( set_color --reset) ' ' 20end 21 22# If we're running via SSH, change the host color. 23set -l color_host$fish_color_host 24if set -q SSH_TTY;and set -q fish_color_host_remote 25set color_host$fish_color_host_remote 26end 27 28echo -n -s( set_color $fish_color_user ) " $USER " ( set_color --reset) @( set_color $color_host ) ( prompt_hostname ) ( set_color --reset) 29end