mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Fix #6202
This commit is contained in:
parent
6cc8e67580
commit
93a5107e79
2 changed files with 8 additions and 1 deletions
|
|
@ -78,6 +78,9 @@ func TestSSHConfigParsing(t *testing.T) {
|
|||
rt(`unset ["a"]`)
|
||||
conf = "env LOCAL_ENV=_kitty_copy_env_var_"
|
||||
rt(`export ["LOCAL_ENV","LOCAL_VAL",false]`)
|
||||
conf = "env a=b\nhostname 2\ncolor_scheme xyz"
|
||||
hostname = "2"
|
||||
rt()
|
||||
|
||||
ci, err := ParseCopyInstruction("--exclude moose --dest=target " + cf)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,11 @@ by spaces. The hostname can include an optional username in the form
|
|||
first hostname specification is found. Note that matching of hostname is done
|
||||
against the name you specify on the command line to connect to the remote host.
|
||||
If you wish to include the same basic configuration for many different hosts,
|
||||
you can do so with the :ref:`include <include>` directive.
|
||||
you can do so with the :ref:`include <include>` directive. In version 0.28.0
|
||||
the behavior of this option was changed slightly, now, when a hostname is encountered
|
||||
all its config values are set to defaults instead of being inherited from a previous
|
||||
matching hostname block. In particular it means hostnames dont inherit configurations,
|
||||
thereby avoiding hard to understand action-at-a-distance.
|
||||
''')
|
||||
|
||||
opt('interpreter', 'sh', long_text='''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue