

firefox : user.js : # Example 3: # The extended Link plugin syntax is supported. firefox : user.js : firefox/user.js # Example 2: # "user.js" can have no value, and will be found # in the same directory as your dotbot config file. # Example 1: # "user.js" can be specified as a string. The value of the key follows the syntax of the dotbot Link plugin.

Then, add a firefox directive to your dotbot config with a user.js key. (MozillaZine maintains an extensive list of Firefox configuration settings.) In the example below, the plugin directory is named dotbot-plugins: dotbot -plugin-dir dotbot-plugins Configurationįirst, create a user.js file in the dotfiles directory that dotbot manages.įor example, it could contain this configuration to set your homepage: user_pref ( "", "" ) You can use dotbot’s -plugin-dir option to load all plugins in the directory. If you copy dotbot_firefox.py to a directory containing other plugins, To tell dotbot to load the plugin: dotbot -plugin dotbot_firefox.py If you copy dotbot_firefox.py to the root of your dotfiles directory You might choose to do this if you already use other pluginsĪnd have configured dotbot to load all plugins from a plugin directory. If desired, you can copy dotbot_firefox.py to your dotfiles directory.
#CZYM JEST DOTBOT UPDATE#
The command for this will look something like: git submodule update -init dotbot-firefox Copy dotbot_firefox.py When you clone your dotfiles repository or pull new changes Note that you may need to initialize the plugin’s git submodule To tell dotbot to load the plugin: dotbot -plugin dotbot-firefox/dotbot_firefox.py This will clone the repository to a directory named dotbot-firefox. Then you can add the plugin repository as a submodule using git: git submodule add (for example, if you manage your dotfiles using git) If you want to track dotbot-firefox as a git submodule You’ll need to edit that file to add the -plugin option.
#CZYM JEST DOTBOT INSTALL#
If you’re using one of dotbot’s install scripts, To tell dotbot to load the plugin: dotbot -plugin dotbot_firefox Then, when running dotbot, use the -p or -plugin option Then you can install the plugin using pip: pip install dotbot-firefox (for example, if you’re using a virtual environment), If you want to install dotbot-firefox as a Python package There are two ways to install and use the plugin:Īdd it as a git submodule in your dotfiles repository.Ĭopy dotbot_firefox.py into your dotfiles directory. The plugin will find Firefox profile directories that contain a prefs.js fileĪnd will use dotbot’s builtin Link plugin to create the symlinks. You can enforce a consistent Firefox configuration across all your profilesīy using dotbot-firefox to create symlinks to a custom user.js. If found, the user.js settings will be copied to prefs.js and used.

When Firefox starts, it will look for a user.js file in your profile directory. Configure your Firefox profile(s) using dotbot.
