mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Revert prompt_hostname to short hostname only
Hat-tip: @zx8. Closes #4804.
This commit is contained in:
parent
2cdacbdce4
commit
b42b562d06
1 changed files with 2 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
function prompt_hostname
|
function prompt_hostname
|
||||||
echo $hostname;
|
# return the short hostname only by default (#4804)
|
||||||
|
string replace -r "\..*" "" $hostname
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue