mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 20:33:08 +00:00
b42b562d06
Hat-tip: @zx8. Closes #4804.
4 lines
127 B
Fish
4 lines
127 B
Fish
function prompt_hostname
|
|
# return the short hostname only by default (#4804)
|
|
string replace -r "\..*" "" $hostname
|
|
end
|