From b306dc54509cca4f340dfe3a119564aa1cc39f29 Mon Sep 17 00:00:00 2001 From: Peter Kracik Date: Wed, 10 Jan 2024 16:54:58 +0100 Subject: [PATCH 1/2] custom plugin dir --- catppuccin.tmux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index 11d4030..e85e079 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -197,7 +197,8 @@ build_status_module() { load_modules() { local modules_list=$1 - local modules_custom_path=$PLUGIN_DIR/custom + local custom_path="$(get_tmux_option "@catppuccin_custom_plugin_dir" "${PLUGIN_DIR}/custom")" + local modules_custom_path=$custom_path local modules_status_path=$PLUGIN_DIR/status local modules_window_path=$PLUGIN_DIR/window From 5172c764e243c054be3e2f7c8a2bdfb9ee88123f Mon Sep 17 00:00:00 2001 From: Peter Kracik Date: Wed, 10 Jan 2024 17:02:06 +0100 Subject: [PATCH 2/2] added readme --- custom/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/custom/README.md b/custom/README.md index 232df4a..2a39982 100644 --- a/custom/README.md +++ b/custom/README.md @@ -30,3 +30,10 @@ show_() { # save this module in a file with the name . echo "$module" } ``` + +## Configure custom modules path + +You can configure a custom path for your modules by setting the `@catppuccin_custom_plugin_dir` option. +```sh +set -g @catppuccin_custom_plugin_dir "" +```