summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/consts.rs
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-06-16 16:59:56 +0200
committera-kenji <aks.kenji@protonmail.com>2021-06-16 17:09:05 +0200
commita9088264eb56f79d3f5d27b7806bdd1671654756 (patch)
tree2b230ad0c22b50459e08a9e6f52b74664af58aca /zellij-utils/src/consts.rs
parent8e097c258aa64dbe817f13e510e1f5dd759e51b3 (diff)
Change `layout` directory from `data` to `config`
* default layouts won't be installed by anymore, instead they will be directly loaded * `layout-dir` is now a subdirectory of the `config-dir` by default, instead of the `data-dir` POSSIBLE BREAKING CHANGE: In case of having custom layouts in the previous `layout-dir` one can switch either the layouts to the new dir, or set the `layout-dir` to be the current `layout-dir` * it is possible to change the location of the `layout-dir`: - `zellij options --layout-dir [LAYOUR_DIR]` - `layout_dir: [LAYOUT_DIR]`
Diffstat (limited to 'zellij-utils/src/consts.rs')
-rw-r--r--zellij-utils/src/consts.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/zellij-utils/src/consts.rs b/zellij-utils/src/consts.rs
index f22dd4893..697e9024d 100644
--- a/zellij-utils/src/consts.rs
+++ b/zellij-utils/src/consts.rs
@@ -10,6 +10,7 @@ use std::{env, fs};
pub const ZELLIJ_CONFIG_FILE_ENV: &str = "ZELLIJ_CONFIG_FILE";
pub const ZELLIJ_CONFIG_DIR_ENV: &str = "ZELLIJ_CONFIG_DIR";
+pub const ZELLIJ_LAYOUT_DIR_ENV: &str = "ZELLIJ_LAYOUT_DIR";
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "/etc/zellij";