标签: tabs gnome-terminal
#!/bin/bash tab="--tab" cmd="bash -c 'set-title hey';bash" foo="" for i in 1 2 3; do foo+=($tab -e "$cmd") done gnome-terminal "${foo[@]}" exit 0
在bashrc文件中,我粘贴了一个功能集标题,运行此脚本后创建了3个选项卡,但bash命令未执行???