2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-27 20:25:12 +00:00
fish-shell/share/functions/prompt_hostname.fish

5 lines
127 B
Fish
Raw Normal View History

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