From 4a6dbe09222f36b478f52602eb434552c343fa58 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Fri, 21 Jan 2022 21:15:21 -0800 Subject: [PATCH] prompt_* functions: shorten their descriptions --- share/functions/prompt_hostname.fish | 2 +- share/functions/prompt_login.fish | 2 +- share/functions/prompt_pwd.fish | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/functions/prompt_hostname.fish b/share/functions/prompt_hostname.fish index 93eb3b104..dcb733578 100644 --- a/share/functions/prompt_hostname.fish +++ b/share/functions/prompt_hostname.fish @@ -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 diff --git a/share/functions/prompt_login.fish b/share/functions/prompt_login.fish index eeafcbb6f..632a462bd 100644 --- a/share/functions/prompt_login.fish +++ b/share/functions/prompt_login.fish @@ -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 diff --git a/share/functions/prompt_pwd.fish b/share/functions/prompt_pwd.fish index 8fe7f9815..f75f0dc0b 100644 --- a/share/functions/prompt_pwd.fish +++ b/share/functions/prompt_pwd.fish @@ -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