Merge pull request #5820 from ncfavier/completion-nospace

Don't insert spaces when completing attribute paths
This commit is contained in:
Eelco Dolstra
2021-12-22 17:55:05 +01:00
committed by GitHub
6 changed files with 28 additions and 10 deletions
+3 -1
View File
@@ -7,8 +7,10 @@ function _complete_nix {
local completion=${line%% *}
if [[ -z $have_type ]]; then
have_type=1
if [[ $completion = filenames ]]; then
if [[ $completion == filenames ]]; then
compopt -o filenames
elif [[ $completion == attrs ]]; then
compopt -o nospace
fi
else
COMPREPLY+=("$completion")