mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +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
|