mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 10:57:30 +08:00
prompt_* functions: shorten their descriptions
This commit is contained in:
parent
af11a628f9
commit
4a6dbe0922
|
@ -1,3 +1,3 @@
|
|||
function prompt_hostname --description 'Print the hostname, shortened for use in the prompt'
|
||||
function prompt_hostname --description 'short hostname for the prompt'
|
||||
string replace -r "\..*" "" $hostname
|
||||
end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function prompt_login --description "Print a description of the user and host suitable for the prompt"
|
||||
function prompt_login --description "display user name for the prompt"
|
||||
if not set -q __fish_machine
|
||||
set -g __fish_machine
|
||||
set -l debian_chroot $debian_chroot
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
function prompt_pwd --description 'Print the current working directory, shortened to fit the prompt'
|
||||
function prompt_pwd --description 'short CWD for the prompt'
|
||||
set -l options h/help d/dir-length= D/full-length-dirs=
|
||||
argparse -n prompt_pwd $options -- $argv
|
||||
or return
|
||||
|
|
Loading…
Reference in New Issue
Block a user