devbox
devbox copied to clipboard
Package binaries not available in `tmux`
What happened?
I use devbox run tmux to start a pre-configured tmux session. Within that session, I can't directly use the installed packages. Please see https://github.com/mootoday/project-template and try to run gh --version in one of the three empty tmux panes on the right side of the terminal.
Steps to reproduce
git clone [email protected]:mootoday/project-template.gitcd project-templatedevbox run tmux- Type
gh --versionin one of the empty panes on the right side – that fails, but I think it should succeed because I started tmux viadevbox run tmux - Type
devbox run gh --version- that succeeds - Type
devbox shell- that fails, understandably because I'm already in a devbox shell due todevbox run tmuxin step 3
Command
shell
devbox.json
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.7/.schema/devbox.schema.json",
"packages": [
"tmux@latest",
"tmuxp@latest",
"gh@latest"
],
"shell": {
"init_hook": [
"gh auth status > /dev/null || gh auth login",
"gh extension list | grep -q 'gh dash' || gh extension install dlvhdr/gh-dash"
],
"scripts": {
"tmux": [
"tmuxp load --yes .config/tmux/tmuxp.yaml"
]
}
}
}
Devbox version
0.10.7
Nix version
nix (Nix) 2.19.3
What system does this bug occur on?
macOS (Apple Silicon)
Debug logs
No response