I have a reproducible problem:
- set up my PATH in Bash .profile
- start tmux by
tmux,tmux attachor any variant - echo $PATH and see it with the same components but in different order
How to stop this? What explains it?
|
I have a reproducible problem:
How to stop this? What explains it? |
|||
|
|
|
If you're on a Mac and have been wondering why You can't easily persuade tmux (or rather, bash) not to source The trick is to make sure that PATH is empty before path_helper runs. In my
Clearing PATH before path_helper executes will prevent it from prepending the default PATH to your (previously) chosen PATH, and will allow the rest of your personal bash setup scripts (commands further down Hope that makes sense... |
|||
|
|
|
No; sorting However, tmux does start your shell in "login" mode, causing
|
|||
|
|