2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-24 10:45:08 +00:00
fish-shell/share/functions/prompt_hostname.fish
Mahmoud Al-Qudsi b42b562d06 Revert prompt_hostname to short hostname only
Hat-tip: @zx8. Closes .
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