mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +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
|