mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 09:18:08 +02:00
Note on how to use include for DRYer config
This commit is contained in:
@@ -42,11 +42,11 @@ quick example:
|
|||||||
env COPIED_VAR=_kitty_copy_env_var_
|
env COPIED_VAR=_kitty_copy_env_var_
|
||||||
|
|
||||||
# Create some per hostname settings
|
# Create some per hostname settings
|
||||||
hostname *.myservers.net
|
hostname someserver-*
|
||||||
copy env-files
|
copy env-files
|
||||||
env SOMETHING=else
|
env SOMETHING=else
|
||||||
|
|
||||||
hostname somehost.org
|
hostname somehost
|
||||||
copy --dest=foo/bar some-file
|
copy --dest=foo/bar some-file
|
||||||
copy --glob some/files.*
|
copy --glob some/files.*
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ editor, respectively:
|
|||||||
.. code-block:: conf
|
.. code-block:: conf
|
||||||
|
|
||||||
# Have these settings apply to servers in my organization
|
# Have these settings apply to servers in my organization
|
||||||
hostname *.my-organization.net
|
hostname myserver-*
|
||||||
|
|
||||||
# Setup zsh to read its files from my-conf/zsh
|
# Setup zsh to read its files from my-conf/zsh
|
||||||
env ZDOTDIR $HOME/my-conf/zsh
|
env ZDOTDIR $HOME/my-conf/zsh
|
||||||
|
|||||||
@@ -29,7 +29,9 @@ The hostname the following options apply to. A glob pattern to match multiple
|
|||||||
hosts can be used. When not specified options apply to all hosts, until the
|
hosts can be used. When not specified options apply to all hosts, until the
|
||||||
first hostname specification is found. Note that the hostname this matches
|
first hostname specification is found. Note that the hostname this matches
|
||||||
against is the hostname used by the remote computer, not the name you pass
|
against is the hostname used by the remote computer, not the name you pass
|
||||||
to SSH to connect to it.
|
to SSH to connect to it. If you wish to include the same configuration for many
|
||||||
|
different hosts, you can do so with the :code:`include` directive (see :doc:`conf`),
|
||||||
|
so that you need only two lines per host.
|
||||||
''')
|
''')
|
||||||
|
|
||||||
opt('+copy', '', option_type='copy', add_to_default=False, long_text=f'''
|
opt('+copy', '', option_type='copy', add_to_default=False, long_text=f'''
|
||||||
|
|||||||
Reference in New Issue
Block a user