From b42b562d0646bf787cafefdd551e397b7d1f7715 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 12 Mar 2018 08:24:42 -0500 Subject: [PATCH] Revert prompt_hostname to short hostname only Hat-tip: @zx8. Closes #4804. --- share/functions/prompt_hostname.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/prompt_hostname.fish b/share/functions/prompt_hostname.fish index 4a068d1d5..225f437c7 100644 --- a/share/functions/prompt_hostname.fish +++ b/share/functions/prompt_hostname.fish @@ -1,3 +1,4 @@ function prompt_hostname - echo $hostname; + # return the short hostname only by default (#4804) + string replace -r "\..*" "" $hostname end