2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-02-17 14:39:01 +00:00
fish-shell/share/functions/prompt_hostname.fish

4 lines
139 B
Fish
Raw Normal View History

2021-12-02 13:55:49 -05:00
function prompt_hostname --description 'Print the hostname, shortened for use in the prompt'
string replace -r "\..*" "" $hostname
2016-10-23 14:56:18 -07:00
end