diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-03-24 12:00:35 +0100 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-03-24 12:00:35 +0100 |
commit | 5e9d927d4bdbe4db20218be4f8f22ddc65f8f3f3 (patch) | |
tree | bd846a60781ce487c71aaa0e75aeb134517e9e37 /bin | |
parent | 9dc2225bf7b01965caca30756c94acd1b9460e1f (diff) | |
download | dotfiles-5e9d927d4bdbe4db20218be4f8f22ddc65f8f3f3.tar.gz dotfiles-5e9d927d4bdbe4db20218be4f8f22ddc65f8f3f3.zip |
posix
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/toggle-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/toggle-theme b/bin/toggle-theme index 31436d8..def1dec 100755 --- a/bin/toggle-theme +++ b/bin/toggle-theme @@ -9,7 +9,7 @@ TMUXCONF="${XDG_CONFIG_HOME}/tmux/tmux.conf" export $(tmux show-env | grep THEME) -function send_vim_cmd() { +send_vim_cmd() { vims=$(tmux list-panes -a -F '#{pane_id} #{pane_current_command}' | grep vim | cut -d ' ' -f 1) @@ -20,7 +20,7 @@ function send_vim_cmd() { } -if [ "$THEME" == "dark" ]; then +if [ "$THEME" = "dark" ]; then # Update alacritty sed -i "s/${DARKTHEME}/${LIGHTTHEME}/" "${ALACRITTYCONF}" |