diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-04-27 09:23:52 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-04-27 21:38:26 +0200 |
| commit | 77e0b5e0d7a44e9a23751eda8a61aed845974686 (patch) | |
| tree | 077f56665a33c519493d242e245a91caa3bcced1 /src/common/utils | |
| parent | fix(ci): formatting tweak (diff) | |
| download | sl0ppij-77e0b5e0d7a44e9a23751eda8a61aed845974686.tar.gz sl0ppij-77e0b5e0d7a44e9a23751eda8a61aed845974686.tar.xz sl0ppij-77e0b5e0d7a44e9a23751eda8a61aed845974686.zip | |
Config Loading
* Configuration is now handled in this order:
--config flag
ZELLIJ_CONFIG_FILE env
get_default_config_dir() (directories-next)
HOME/.config/zellij (for mac convenience)
SYSTEM_DEFAULT_CONFIG_DIR (for distributions to specify sensible
defaults ontop of zellij)
from assets
* Fix default.yaml file
* Move default.yaml file to assets directory
Diffstat (limited to 'src/common/utils')
| -rw-r--r-- | src/common/utils/consts.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/utils/consts.rs b/src/common/utils/consts.rs index 663a545d..4bd1b5b1 100644 --- a/src/common/utils/consts.rs +++ b/src/common/utils/consts.rs @@ -4,3 +4,9 @@ pub const ZELLIJ_TMP_DIR: &str = "/tmp/zellij"; pub const ZELLIJ_TMP_LOG_DIR: &str = "/tmp/zellij/zellij-log"; pub const ZELLIJ_TMP_LOG_FILE: &str = "/tmp/zellij/zellij-log/log.txt"; pub const ZELLIJ_IPC_PIPE: &str = "/tmp/zellij/ipc"; + +pub const ZELLIJ_CONFIG_FILE_ENV: &str = "ZELLIJ_CONFIG_FILE"; +pub const ZELLIJ_CONFIG_DIR_ENV: &str = "ZELLIJ_CONFIG_DIR"; + +// TODO: ${PREFIX} argument in makefile +pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "/etc/zellij"; |
