Skip to content

Commit

Permalink
Fix tab completion for zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal-test committed Sep 18, 2013
1 parent 44a1d83 commit 70c151b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mozconfigwrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ function mozconfigwrapper_list_mozconfigs {
# NOTE: DO NOT use ls here because colorized versions spew control characters
# into the output list.
# echo seems a little faster than find, even with -depth 3.
mozconfigwrapper_buildwith_home
(\cd "$BUILDWITH_HOME"; for f in `dir -d *`; do echo $f; done)
mozconfigwrapper_buildwith_home || return 1
(echo "$BUILDWITH_HOME"/*) 2>/dev/null \
| command \fmt -w 1 \
| command \sed -e "s!^$BUILDWITH_HOME\/!!" \
| (unset GREP_OPTIONS; command \egrep -v '^\*$') 2>/dev/null
}

mozconfigwrapper_buildwith_home
Expand Down

0 comments on commit 70c151b

Please sign in to comment.