我正在尝试在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发布于 2018-02-09 01:26:25
只需打开选项卡,您可以使用
lxterminal --tabs="First tab","Second tab"
但我不确定你能不能在其中执行一些东西
附言:我通常在任何终端仿真器中使用tmux或byobu来实现标签和其他舒适的功能
https://stackoverflow.com/questions/48690174
复制相似问题