mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-08 09:04:16 +00:00
@@ -58,6 +58,7 @@ class CfgYaml:
|
||||
key_dotfile_actions = 'actions'
|
||||
key_dotfile_link_children = 'link_children'
|
||||
key_dotfile_noempty = 'ignoreempty'
|
||||
key_dotfile_template = 'template'
|
||||
|
||||
# profile
|
||||
key_profile_dotfiles = 'dotfiles'
|
||||
@@ -83,6 +84,7 @@ class CfgYaml:
|
||||
key_settings_noempty = Settings.key_ignoreempty
|
||||
key_settings_minversion = Settings.key_minversion
|
||||
key_imp_link = Settings.key_link_on_import
|
||||
key_settings_template = Settings.key_template_dotfile_default
|
||||
|
||||
# link values
|
||||
lnk_nolink = LinkTypes.NOLINK.name.lower()
|
||||
@@ -597,6 +599,11 @@ class CfgYaml:
|
||||
if self.key_dotfile_noempty not in v:
|
||||
val = self.settings.get(self.key_settings_noempty, False)
|
||||
v[self.key_dotfile_noempty] = val
|
||||
# apply template if undefined
|
||||
if self.key_dotfile_template not in v:
|
||||
val = self.settings.get(self.key_settings_template, True)
|
||||
v[self.key_dotfile_template] = val
|
||||
|
||||
return new
|
||||
|
||||
def _add_variables(self, new, shell=False, template=True, prio=False):
|
||||
|
||||
Reference in New Issue
Block a user