From 2f3bcb7c2dcd3899be80e83673a4625e0651dda1 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 8 Nov 2023 16:25:54 -0500 Subject: [PATCH] formatting --- brc | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/brc b/brc index 49c9a26..07ba8cf 100644 --- a/brc +++ b/brc @@ -318,10 +318,12 @@ h() { # note. ## copy bash completion -# Usage: ORIGINAL_COMMAND TARGET_COMMAND... # # It copies how the bash completion works from one command to other -# commands. +# commands. Generally just use within a .bashrc. +# +# Usage: ORIGINAL_COMMAND TARGET_COMMAND... +# ccomp() { local c src src=$1 @@ -336,12 +338,15 @@ ccomp() { eval $c $* } -## BEGIN directory history tracking and navigation. +## BEGIN functions to change directory better than cd ## +# +# The functions: # -# use c instead of cd (could alias to cd if you wanted). b to go back, f -# to go forward, cl to list recent directories and choose one. +# c: acts like cd, but stores directory history: you could alias to cd if you wanted. +# b: go back +# f: go forward, cl to list recent directories and choose one. # -# The finer details you may want to skip: +# Finer details you may want to skip: # # We also define bl to print the list of back and forward directories. # @@ -537,6 +542,7 @@ bl() { fi done } +## BEGIN functions to change directory better than cd ## # pee do. run args as a command with output copied to syslog. # -- 2.30.2