mirror of
https://github.com/NixOS/nix
synced 2025-06-24 18:01:16 +02:00
Merge pull request #5820 from ncfavier/completion-nospace
Don't insert spaces when completing attribute paths
This commit is contained in:
commit
b666a2ca8c
6 changed files with 28 additions and 10 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue