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

4 lines
117 B
Fish
Raw Normal View History

function prompt_hostname --description 'short hostname for the prompt'
string replace -r "\..*" "" $hostname
2016-10-23 21:56:18 +00:00
end