【问题标题】:Lxterminal open several tabs from shell script [closed]Lxterminal从shell脚本打开几个标签[关闭]
【发布时间】: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 中打开选项卡是一个明显的问题...
  • 有人要回答我吗?

标签: shell ubuntu terminal


【解决方案1】:

只是为了打开标签,你可以使用
lxterminal --tabs="First tab","Second tab"

但我不确定你是否可以在其中执行某些操作

附:通常我在任何终端模拟器中使用tmuxbyobu 来获得标签和其他舒适的功能

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-03
    • 1970-01-01
    • 2015-06-24
    • 2016-09-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多