File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1021,14 +1021,14 @@ function pathmunge() {
10211021# a subshell to simplify our search to a simple `cd ..` and `[[ -r $1 ]]`
10221022# without any external dependencies. Let the shell do what it's good at.
10231023function _bash-it-find-in-ancestor() (
1024- about ' searches parents of the current directory for any of the specified file names'
1025- group ' helpers'
1026- param ' *: names of files or folders to search for'
1027- returns ' 0: prints path of closest matching ancestor directory to stdout'
1028- returns ' 1: no match found'
1029- returns ' 2: improper usage of shell builtin' # uncommon
1030- example ' _bash-it-find-in-ancestor .git .hg'
1031- example ' _bash-it-find-in-ancestor GNUmakefile Makefile makefile'
1024+ : _about ' searches parents of the current directory for any of the specified file names'
1025+ : _group ' helpers'
1026+ : _param ' *: names of files or folders to search for'
1027+ : _returns ' 0: prints path of closest matching ancestor directory to stdout'
1028+ : _returns ' 1: no match found'
1029+ : _returns ' 2: improper usage of shell builtin' # uncommon
1030+ : _example ' _bash-it-find-in-ancestor .git .hg'
1031+ : _example ' _bash-it-find-in-ancestor GNUmakefile Makefile makefile'
10321032
10331033 local kin
10341034 # To keep things simple, we do not search the root dir.
You can’t perform that action at this time.
0 commit comments