fix: allow it to work on read-only filesystems
This commit is contained in:
parent
e2561decc2
commit
75f09ff843
2 changed files with 2 additions and 9 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,4 +0,0 @@
|
|||
# Let's not store the selected theme in version control. This file is used to
|
||||
# source theme variables locally in the main function rather than polluting the
|
||||
# global variable namespace.
|
||||
catppuccin-selected-theme.tmuxtheme
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue