更新时间:2023-11-11 21:21:16
下面是我们在Superuser
添加的eval$ BASH_POST_RC
来后,你的的.bashrc
设置BASH_POST_RC环境变量对每个选项卡,你要执行该命令,例如: Gnome终端 - 工作目录=/家/ zardoz /项目/ my_rails_app - -Tab -e'的bash -c出口BASH_POST_RC = \\导轨服务器\\; EXEC庆典'--tab -e'的bash -c出口BASH_POST_RC = \\自动测试\\; EXEC庆典
Set the BASH_POST_RC environment variable for each tab to that command you like to execute, e.g.: gnome-terminal --working-directory="/home/zardoz/projects/my_rails_app" --tab -e 'bash -c "export BASH_POST_RC=\"rails server\"; exec bash"' --tab -e 'bash -c "export BASH_POST_RC=\"autotest\"; exec bash"'