mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 00:47:30 +00:00
3 lines
117 B
Fish
3 lines
117 B
Fish
function prompt_hostname --description 'short hostname for the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|