fish-shell/share/functions/prompt_hostname.fish

5 lines
127 B
Fish
Raw Normal View History

2016-10-23 15:02:14 -07:00
function prompt_hostname
# return the short hostname only by default (#4804)
string replace -r "\..*" "" $hostname
2016-10-23 14:56:18 -07:00
end