You only need dconf to export/import gnome-terminal profiles.

To export all gnome-terminal profiles run:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf

To import the exported profiles above, run:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ > gnome-terminal-profiles.dconf

If you want to export and then import only a particular profile, you need to find out the profile’s id first. To list all profiles available:

$ dconf dump /org/gnome/terminal/legacy/profiles:/ | grep -e "\[\:\|visible-name"

You get an output like this one:

[:2afe8ac6-b873-4843-94e1-df6efbb8368d]
visible-name='Default'
[:c20ee9bb-547e-4e42-9865-ec27748eec5f]
visible-name='server1'
[:bd255b93-a970-45fe-aab6-4c3b969f3b9e]
visible-name='server2'

Let’s say I would like to export the server1 profile, the id for it is c20ee9bb-547e-4e42-9865-ec27748eec5f

To back it up:

$ dconf dump /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ > server1-gnome-terminal-profile.dconf

To load it:

$ dconf load /org/gnome/terminal/legacy/profiles:/:c20ee9bb-547e-4e42-9865-ec27748eec5f/ < server1-gnome-terminal-profile.dconf
How to export/import gnome-terminal profiles
Tagged on:                     

Leave a Reply

Your email address will not be published. Required fields are marked *

*