Revert prompt_hostname to short hostname only

Hat-tip: @zx8. Closes #4804.
This commit is contained in:
Mahmoud Al-Qudsi 2018-03-12 08:24:42 -05:00
parent 2cdacbdce4
commit b42b562d06

View file

@ -1,3 +1,4 @@
function prompt_hostname
echo $hostname;
# return the short hostname only by default (#4804)
string replace -r "\..*" "" $hostname
end