fish-shell/share/functions/prompt_hostname.fish
Mahmoud Al-Qudsi b42b562d06 Revert prompt_hostname to short hostname only
Hat-tip: @zx8. Closes #4804.
2018-03-12 08:24:42 -05:00

4 lines
127 B
Fish

function prompt_hostname
# return the short hostname only by default (#4804)
string replace -r "\..*" "" $hostname
end