-
~/.bashrc中 conda initialization下方添加:
if [ -n "$TMUX" ]; then conda activate your_env_name fi
source ~/.bashrc
-
进入~/.tmux.conf
set -g mouse on # 启用鼠标滚轮 set-option -g default-command "bash -l" # 以登录shell模式启动,否则会报错condaError
-
更新tmux.conf
tmux source-file ~/.tmux.conf
tmux新建窗口时自动激活conda环境
最新推荐文章于 2025-05-08 18:06:57 发布