terminator有分割窗口的功能,但Ubuntu默认终端没有这项功能。
安装terminator
sudo apt install terminator
安装成功后,Ctrl+Alt+T打开的终端会被自动替换为terminator,桌面右键菜单的在终端中打开也会替换为terminator。
但在其它文件夹的右键菜单中的在终端中打开仍旧是ubuntu默认终端,这就很不爽。
不将terminator加入右键菜单中的话,每次用都要cd到目标目录,很麻烦。
具体操作
1.首先进入如下文件夹:
cd ~/.local/share/nautilus/scripts
2.创建文件“terminator打开”用于存放脚本。(文件名可以有中文)
vim terminator打开
3.添加内容
#!/bin/bash
terminator
4.保存退出
:wq
这个时候,右键菜单中还看不到该项。
5.给此文件赋予权限
sudo chmod u+x terminator打开
至此成功,如下图。
注意:需要在目标文件夹内右键其中的一个文件或文件夹,而在文件夹内右击空白处不会有该菜单。