* PATCH: _baz build-config
@ 2005-07-24 14:41 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2005-07-24 14:41 UTC (permalink / raw)
To: zsh-workers
Some people have their configs below a directory not in an Arch project
tree, and this attempts to accomodate them. Checking for the configs/
dir twice is silly though.
Index: Completion/Unix/Command/_baz
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_baz,v
retrieving revision 1.6
diff -u -r1.6 _baz
--- Completion/Unix/Command/_baz 17 Apr 2005 13:40:27 -0000 1.6
+++ Completion/Unix/Command/_baz 24 Jul 2005 14:38:18 -0000
@@ -54,8 +54,12 @@
[[ -n "$n" ]] && configdir=$opt_args[$n]
root="$(_call_program baz $BAZ tree-root ${configdir} 2>&1)"
if (( $? )); then
- _message -e messages "Error: $root"
- return $ret
+ if [[ -d "configs" ]]; then
+ root=.
+ else
+ _message -e messages "Error: $root"
+ return $ret
+ fi
fi
if [[ -d "$root/configs" ]]; then
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-24 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-24 14:41 PATCH: _baz build-config Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).