Utilities - vcspull.util

Utility functions for vcspull.

vcspull.util.get_config_dir()[source]

Return vcspull configuration directory.

VCSPULL_CONFIGDIR environmental variable has precedence if set. We also evaluate XDG default directory from XDG_CONFIG_HOME environmental variable if set or its default. Then the old default ~/.vcspull is returned for compatibility.

Return type:

Path

Returns:

absolute path to tmuxp config directory

Return type:

str

vcspull.util.update_dict(d, u)[source]

Return updated dict.

Return type:

TypeVar(T, bound= dict[str, Any])

Parameters:
Returns:

Updated dictionary

Return type:

dict

Notes

Thanks: http://stackoverflow.com/a/3233356