Skip to content

Commit

Permalink
Fix completion more than 3 levels deep
Browse files Browse the repository at this point in the history
Not sure how I'd missed this, but we need ${foo//pattern/string} to
replace all occurrences.

ref #11
  • Loading branch information
hedning committed Feb 9, 2020
1 parent d35041e commit e6db308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function _nix_attr_paths () {
fi

# attr1.attr3 -> ("attr1" "attr2")
local -a paths=(${attr_path/./ })
local -a paths=(${attr_path//./ })
paths=(${paths[*]/%/\"})
paths=(${paths[*]/#/\"})

Expand Down

0 comments on commit e6db308

Please sign in to comment.