mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
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:
@@ -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 '
|
||||
|
||||
|
||||
Reference in New Issue
Block a user