1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 18:01:16 +02:00

Don't insert spaces when completing attribute paths

This commit is contained in:
Naïm Favier 2021-12-22 12:37:59 +01:00
parent 6e6e998930
commit 1da1b2b345
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2
6 changed files with 27 additions and 9 deletions

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")