From 110a068dbc27bbaf8f3b8011e1402bb71afb0273 Mon Sep 17 00:00:00 2001 From: Roger Steve Ruiz Date: Wed, 30 Nov 2022 00:02:19 -0500 Subject: [PATCH] Fix the path issue with the plugin directory --- catppuccin.tmux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index 937d072..47d06e9 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -1,5 +1,5 @@ #!/usr/bin/env bash -CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +PLUGIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" main() { get-tmux-option() { @@ -33,10 +33,10 @@ main() { # NOTE: Pulling in the selected theme by the theme that's being set as local # variables. sed -E 's/^(.+=)/local \1/' \ - > catppuccin-selected-theme.tmuxtheme \ - < "${CURRENT_DIR}/catppuccin-${theme}.tmuxtheme" + > "${PLUGIN_DIR}/catppuccin-selected-theme.tmuxtheme" \ + < "${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme" - source catppuccin-selected-theme.tmuxtheme + source "${PLUGIN_DIR}/catppuccin-selected-theme.tmuxtheme" # status set status "on"