- Management of bookmarks, local or remote;
- Personalized links (clickable links based on regular expressions);
- Automatic profile switching depending on location (local or remote (SSH));
- Password management;
- Launch of internal actions.
Tilix allows you to save and manage a list of “bookmarks”, that is to say local or remote locations. Just open the Preferences and define some folder or remote servers to connect to, then open this list, select the desired bookmark and go immediately to the folder or open the SSH session to a remote host.
Note: the bookmarks are saved in
$HOME/.config/tilix/bookmarks.json We recommend that you create this file by hand beforehand if you notice that your bookmarks are not saved correctly after leaving Tilix.
Create a bookmark folder
Tilix allows you to organize your bookmarks by creating a simple folder in which you can create them, so that they are well organized. This is useful for, for example, grouping SSH connections to the same group of machines:
Click on the folder then on the + to add bookmarks.
To add bookmarks, open Tilix preferences, then go to the Bookmarks section to click on the +”.
Here we will add a bookmark to the local copy of a project on the Open Build Service.
The procedure is the same, but choose Remote then enter the bookmark parameters:
- Name: the reference of your bookmark;
- Protocol: choice: SSH, SFTP, TELNET, FTP;
- Host: the host name of the target followed by the port number;
- User: the user of the connection;
- Settings: SSH options for example;
- Command: if it is an SSH connection, the command to launch on the remote host.
Same procedure as the others, but here we simply enter a command to launch. The bookmark is therefore here a simple alias.
My order to update the local copy of my OBS repository.
You can access your bookmarks via “Ctrl + Shift + B”, you just have to select it and the corresponding command is launched:
Tilix allows you to define a list of links (URI to a web page or a local or remote
file:// location) that will be made clickable based on a regular expression or a simple word. To do this, open the Preferences then the Advanced section. For the example, we will add a link to the Open Build Service with the key work obs;
The regular expression has become clickable, either by “Ctrl + click”, or by a right-click.
Automatic profile change
We arrive there in a functionality of Tilix, which is particularly useful and must care to avoid to make severe mistake by typing a command in the bad directory or in a remote connection: the automatic change of profile. Tilix, like many modern terminal emulators, allows you to create several profiles (colors, shell used, font etc …) but in addition, it allows to automatically switch from one to the other, depending from the active location: either a local folder or, more interesting, but also requiring a little more manipulation, an SSH connection.
For the example, we will create a profile called “Root” that will be activated automatically when we explore one of the following folders:
/etc /usr /root
Now, in the “Advanced” tab of the profile, we will define the condition necessary for its activation.
As specified, the values must be in the format “host:folder” or “host:” or “: folder”, the “:”. These are mandatory, so “host” or “folder” alone are not allowed.
And now if we go to
The changeover was done automatically and as soon as we leave
/etc, Tilix will use the default profile again.
During a remote connection
Tilix allows us to do the same during an SSH connection. But this requires a bit of configuration on the remote host:
Copy of the script on the remote host:
You must push the script
/usr/share/tilix/scripts/tilix_int.sh in the
$HOME of the remote user (or to any other folder from where it can be sourced like
scp /usr/share/tilix/scripts/tilix_int.sh user@hostname:/home/user
Then connect to it beforehand to add the launch of the script to the connection, via its
.bashrc for example:
[geeko@host ~]$ cat .bashrc # .bashrc # User specific aliases and functions . ./tilix_int.sh
Then, there too, define the profile switch condition as above but by specifying the host (the one provided by the hostname command on which Tilix itself is bases) this time. Then connect. The profile will change as soon as the SSH connection is established. It will switch back to the default profile as soon as we log out.
Tilix also allows you to store passwords in memory. To do this, click on the menu of the active terminal and choose “Passwords …”:
And fill it in:
Tilix keeps the passwords saved in the GNOME keyring.
This is a very interesting function coupled with the previous ones:
- using bookmarks, you launch a remote connection;
- thanks to the saved passwords you unlock your SSH key for example;
- then Tilix immediately switches you to the profile of your choice if necessary.
Launch of internal actions
Within a current Tilix session, it allows you to launch internal actions that can be useful, for example, to split the window in two and then open an X program in the created tile:
tilix -a session-add-right -e htop
This functionality is very useful when coupled with an alias or chained, allowing you to build your session layout and start your apps.
Tilix has been actively developed and is now considered mature. We hope that this review of its advanced features will have convinced you, or at least made you want to try it.
See you soon, enjoy!
You can skip to the end and leave a response. Pinging is currently not allowed.