Jonas Chevalier

Results 831 comments of Jonas Chevalier

tmux is problematic. It inherits environment variables from the caller but also seem to be loading the user's profile (resetting the PATH in the process) which gives you a mixed...

So I did some spelunking, from the man pages: ``` default-command shell-command Set the command used for new windows (if not specified when the window is created) to shell-command, which...

Just to recap, it's easy to reproduce the issue without direnv: `export PATH=/woot:$PATH; tmux` then `echo $PATH` inside the tmux window, "/woot" would have disappeared since the profile has been...

I currently have /bin/zsh as my default shell and ~/.zshrc and ~/.bashrc configured with the direnv hook. If all environment variables are set by the system and user profiles then...

Too tired, here's an interesting ref for myself in the future: http://sourceforge.net/p/tmux/tmux-code/ci/master/tree/session.c#l243

Cool. If this works well then I'll make a guide of how to use direnv with TMUX. The biggest issue I think is if you change environment variables instead of...

Okay, thanks for the status update. I'll see what I can do to make the situation better in the future but I think it depends more on tmux behaving badly...

Yeah, and last time I checked I remember having to go through multiple layers of indirection to find where the env was defined. It wasn't straightforward. I also remember thinking...

Since a new install of bash/zsh is started maybe it can be put in the .bashrc/.zshrc ? `direnv reload` is probably not ideal though because it forces all shells to...