S
S
sanex33392016-03-21 13:43:35
bash
sanex3339, 2016-03-21 13:43:35

What is the best way to open a new tab for the current terminal window?

What is the best way to open a new tab for the current terminal window?
I am currently using something like this

if exists xfce4-terminal; then
    xfce4-terminal --title=$TITLE -H -e "$1 --port=$PORT" \
      --tab --title=$TITLE -e "$2" &
  elif exists gnome-terminal; then
    gnome-terminal -t $TITLE --tab -e "$1 --port=$PORT" \
    			--tab -t $TITLE -e "$2" &
  else
    xterm -T $TITLE -e  "$1 --port=$PORT" &
    xterm -T $TITLE -e  "$2" &
  fi

What we don't like - we call, for example, in PhpStorm's terminal - it opens xfce4-terminal for Ubuntu, respectively, but I would like to open a new tab directly in PhpStorm's terminal.
There is a way to install tools and emulate ctrl + shift + t - this method will not work for me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Selivanov, 2016-03-26
@selivanov_pavel

I advise you to look at yakuake/guake.
PhpStorm has its own implementation of the terminal, if it can tab, it should be a hotkey.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question