hostname only in ssh
This commit is contained in:
parent
31a8bc976b
commit
04b78a0cbb
1 changed files with 5 additions and 3 deletions
|
@ -92,9 +92,11 @@ function fish_right_prompt
|
||||||
end
|
end
|
||||||
|
|
||||||
function fish_prompt
|
function fish_prompt
|
||||||
|
if test -n "$SSH_CLIENT"; or test -n "$SSH_TTY"
|
||||||
__slavic_color_echo $__slavic_color_blue " "
|
__slavic_color_echo $__slavic_color_blue " "
|
||||||
__slavic_color_echo $__slavic_color_white (prompt_hostname)
|
__slavic_color_echo $__slavic_color_white (prompt_hostname)
|
||||||
printf " "
|
printf " "
|
||||||
|
end
|
||||||
__slavic_color_echo $__slavic_color_purple (prompt_pwd)
|
__slavic_color_echo $__slavic_color_purple (prompt_pwd)
|
||||||
__slavic_git_status
|
__slavic_git_status
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue