mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 20:52:48 +08:00
Revert prompt_hostname to short hostname only
Hat-tip: @zx8. Closes #4804.
This commit is contained in:
parent
2cdacbdce4
commit
b42b562d06
|
@ -1,3 +1,4 @@
|
|||
function prompt_hostname
|
||||
echo $hostname;
|
||||
# return the short hostname only by default (#4804)
|
||||
string replace -r "\..*" "" $hostname
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user