.bashrc/.profile is not loaded on new tmux session (or window) — why?

前端 未结 6 1763
轻奢々
轻奢々 2020-12-12 23:17

When tmux starts or opens a new window, it does not load my .profile or .bashrc. I end up typing . ~/.bashrc every time. Is there a

6条回答
  •  一生所求
    2020-12-13 00:01

    The solution that worked for me is the following:

    • Create a .bash_profile file if you don't have one in ~
    • At the end of .bash_profile put source ~/.bashrc or source ~/.profile
    • Restart tmux.

    The issue should now be fixed.

提交回复
热议问题