Skip to content

Commit

Permalink
Fix the path issue with the plugin directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rogeruiz committed Nov 30, 2022
1 parent 9395d48 commit 110a068
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions catppuccin.tmux
Original file line number Diff line number Diff line change
@@ -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() {
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 110a068

Please sign in to comment.