【发布时间】:2018-02-08 16:24:13
【问题描述】:
我试图在一个 shell 脚本中打开几个标签。在 gnome-terminal 中看起来像这样:
gnome-terminal \
--tab -e "bash -ic \" echo 'First tab' "; exec bash\"" \
--tab -e "bash -ic \"echo 'Second tab' "; exec bash\""
我试图在 lxterminal 中做,但它不起作用:(
lxterminal \
--tabs -e "bash -ic \" echo 'First tab'; exec bash\"" \
--tabs -e "bash -ic \" echo 'Second tab'; exec bash\"" \
在我看到的帮助文件中:
Usage:
lxterminal [Options...] - LXTerminal is a terminal emulator
Options:
-e, --command=STRING Execute the argument to this option inside the terminal
--geometry=COLUMNSxROWS Set the terminal's size
-l, --loginshell Execute login shell
-t, -T, --title=,
--tabs=NAME[,NAME[,NAME[...]]] Set the terminal's title
--working-directory=DIRECTORY Set the terminal's working directory
--no-remote Do not accept or send remote commands
-v, --version Version information
【问题讨论】:
-
为什么是题外话?!如何使用 shell 代码在 lxterminal 中打开选项卡是一个明显的问题...
-
有人要回答我吗?