diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-12-22 13:26:35 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-12-22 13:26:35 +0100 |
commit | 5b5f68f1dd4395f0ef7231218295d1c633d4288b (patch) | |
tree | 76728dc310faa76b3057f1e5312f3c91a71bb745 /misc | |
parent | 0a7c1da9f3182e685a08eadd6185803a83a16b59 (diff) |
Make bash completion work when nix is invoked as ~/.../nix
Diffstat (limited to 'misc')
-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 bea2a40bc..0af90d8c1 100644 --- a/misc/bash/completion.sh +++ b/misc/bash/completion.sh @@ -13,7 +13,7 @@ function _complete_nix { else COMPREPLY+=("$completion") fi - done < <(NIX_GET_COMPLETIONS=$cword "${words[@]}") + done < <(NIX_GET_COMPLETIONS=$cword "${words[@]/#\~/$HOME}") __ltrim_colon_completions "$cur" } |