fix: allow it to work on read-only filesystems

This commit is contained in:
Stanislav Asunkin 2023-01-04 13:51:18 +03:00
parent e2561decc2
commit 75f09ff843
2 changed files with 2 additions and 9 deletions

View file

@ -32,11 +32,8 @@ main() {
# NOTE: Pulling in the selected theme by the theme that's being set as local
# variables.
sed -E 's/^(.+=)/local \1/' \
> "${PLUGIN_DIR}/catppuccin-selected-theme.tmuxtheme" \
< "${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme"
source "${PLUGIN_DIR}/catppuccin-selected-theme.tmuxtheme"
# shellcheck source=catppuccin-frappe.tmuxtheme
source /dev/stdin <<<"$(sed -e "/^[^#].*=/s/^/local /" "${PLUGIN_DIR}/catppuccin-${theme}.tmuxtheme")"
# status
set status "on"