From 48354bfac36e793b03596a0aae38ddd7e2dbb8f3 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Fri, 18 Apr 2025 16:15:05 -0400 Subject: [PATCH] AutoYADM commit: 2025-04-18 16:15:05 --- .config/fish/conf.d/smartcd.fish | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.config/fish/conf.d/smartcd.fish b/.config/fish/conf.d/smartcd.fish index c2e1db8d..7ee73037 100644 --- a/.config/fish/conf.d/smartcd.fish +++ b/.config/fish/conf.d/smartcd.fish @@ -7,14 +7,17 @@ function cd --wraps=cd --description "Change directory. No args goes to git root argparse h/help -- $argv if set -q _flag_help echo smartcd.fish: Change directories, slightly smarter. - echo Invoke by running cd. Update with smartcd_update. + echo Invoke by running cd. Update with smartcd_update.\n echo Usage: echo -h/--help: show this menu. echo cd [args]: behaves like normal cd. echo cd [no-args]: cd to ROOT. If at ROOT, cd to PREV.\n echo ROOT = Git repo root '||' "\$HOME". echo PREV = Last element of "\$dirprev". - echo If PREV is outside ROOT, user is prompted first. + echo If PREV is outside ROOT, user is prompted first.\n + echo Author: Daniel Fichtinger '' + echo Upstream: https://git.sr.ht/~ficd/smartcd.fish + echo License: ISC return 0 end # Skip history in subshells. @@ -58,9 +61,13 @@ end function smartcd_update --description "Update smartcd.fish with the latest from the upstream." argparse h/help d/dry -- $argv if set -q _flag_help - echo Update smartcd.fish with the latest from upstream. + echo Update smartcd.fish with the latest from upstream.\n + echo Usage: echo -d/--dry to not save the file. - echo -h/--help to print this screen. + echo -h/--help to print this screen.\n + echo Author: Daniel Fichtinger '' + echo Upstream: https://git.sr.ht/~ficd/smartcd.fish + echo License: ISC return 0 end set -l url https://git.sr.ht/~ficd/smartcd.fish/blob/main/smartcd.fish