1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Make bash completion work when nix is invoked as ~/.../nix

This commit is contained in:
Eelco Dolstra 2021-12-22 13:26:35 +01:00
parent 0a7c1da9f3
commit 5b5f68f1dd

View file

@ -13,7 +13,7 @@ function _complete_nix {
else else
COMPREPLY+=("$completion") COMPREPLY+=("$completion")
fi fi
done < <(NIX_GET_COMPLETIONS=$cword "${words[@]}") done < <(NIX_GET_COMPLETIONS=$cword "${words[@]/#\~/$HOME}")
__ltrim_colon_completions "$cur" __ltrim_colon_completions "$cur"
} }