diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-02-04 22:43:16 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2022-02-04 22:43:16 +0100 |
commit | 9d840758a8d195e52e8b7d08cd9c15f6b8259724 (patch) | |
tree | fe65235d0dc6251bb25ef7a116ae86fdcdd8a0ab /misc/bash/completion.sh | |
parent | 59b6afec0709fe961453cea35aa9ff6a4148099b (diff) |
completions: pipe stderr to /dev/null
This fixes weird issues where e.g.
nix build -L .#<tab>
deletes the current line from the prompt.
Diffstat (limited to 'misc/bash/completion.sh')
-rw-r--r-- | misc/bash/completion.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/bash/completion.sh b/misc/bash/completion.sh index 8fc224792..045053dee 100644 --- a/misc/bash/completion.sh +++ b/misc/bash/completion.sh @@ -15,7 +15,7 @@ function _complete_nix { else COMPREPLY+=("$completion") fi - done < <(NIX_GET_COMPLETIONS=$cword "${words[@]/#\~/$HOME}") + done < <(NIX_GET_COMPLETIONS=$cword "${words[@]/#\~/$HOME}" 2>/dev/null) __ltrim_colon_completions "$cur" } |