Skip to content

Conversation

@gavindsouza
Copy link

Before

❯ direnv allow
direnv: loading ~/Desktop/pixi-bench-demo/.envrc
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:466: compgen: command not found 
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:3952: complete: command not found 
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:3952: complete: command not found

After

❯ direnv allow
direnv: loading ~/Desktop/pixi-bench-demo/.envrc
~/Desktop/pixi-bench-demo ❯

### Before

❯ direnv allow
direnv: loading ~/Desktop/pixi-bench-demo/.envrc
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:466: compgen: command not found
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:3952: complete: command not found
/home/gavin/Desktop/pixi-bench-demo/.pixi/envs/default/share/bash-completion/completions/git:3952: complete: command not found

### After

❯ direnv allow
direnv: loading ~/Desktop/pixi-bench-demo/.envrc
~/Desktop/pixi-bench-demo ❯
@Hofer-Julian
Copy link
Contributor

I haven't had time to test it locally yet.

Before we merge this, let's make sure that:

  • this also works on Windows
  • that it behaves reasonably if $SHELL isn't set

@pavelzw
Copy link
Contributor

pavelzw commented Apr 14, 2025

this also works on Windows

i don't think we ever managed to get it to work on windows 🤔 probably because of a lack of trying, though

@ruben-arts
Copy link
Contributor

This seems indeed like a problematic issue on the auto selection, what is the shell you wanted it to find vs what did it think it was running in?

@lucascolley lucascolley added documentation Improvements or additions to documentation area:shell-hook Related to pixi shell-hook labels Jul 21, 2025
@ruben-arts
Copy link
Contributor

Closing since stale

@ruben-arts ruben-arts closed this Jul 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:shell-hook Related to pixi shell-hook documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants