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