mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-25 03:03:58 +08:00
4 lines
117 B
Fish
4 lines
117 B
Fish
function prompt_hostname --description 'short hostname for the prompt'
|
|
string replace -r "\..*" "" $hostname
|
|
end
|