TMUX setting environment variables for sessions

后端 未结 4 1740
故里飘歌
故里飘歌 2021-02-04 00:07

I work in a situation where I have multiple projects and within each are many scripts that make use of environment variables set to values specific to that project.

What

4条回答
  •  面向向阳花
    2021-02-04 00:42

    I've done a simple

    export MY_VAR="some value"
    

    before I start the tmux session, which gives me access to MY_VAR from all windows inside that session.

提交回复
热议问题