implement a fish_prompt_hostname function

Standardize how the host name is included in the prompts that do so.

Fixes #3480
This commit is contained in:
Kurtis Rader
2016-10-23 14:20:54 -07:00
parent 668de88e69
commit 07de13f61f
14 changed files with 19 additions and 62 deletions

View File

@@ -12,7 +12,7 @@ function fish_prompt
printf ' at '
set_color magenta
printf '%s' (hostname|cut -d . -f 1)
echo -n (fish_prompt_hostname)
set_color normal
printf ' in '