From d60e40e09793b1268e25bcea0417f70559d43c0a Mon Sep 17 00:00:00 2001 From: Valentin Uveges Date: Thu, 10 Aug 2023 19:35:21 +0300 Subject: [PATCH] feat(tmux): reduce sed complexity --- catppuccin.tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catppuccin.tmux b/catppuccin.tmux index 443db6f..bb3f930 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -44,7 +44,7 @@ build_window_icon() { if [ "$window_status_icon_enable" = "yes" ] then - local show_window_status="#(printf '%%s\n' '#F' | sed \"s/*/${custom_icon_window_current}/\" | sed \"s/-/${custom_icon_window_last}/\" | sed \"s/#/${custom_icon_window_activity}/\" | sed \"s/#//g\"| sed \"s/~/${custom_icon_window_silent}/\" | sed \"s/!/${custom_icon_window_bell}/\" | sed \"s/M/${custom_icon_window_mark}/\" | sed \"s/Z/${custom_icon_window_zoom}/\")" + local show_window_status="#(printf '%%s\n' '#F' | sed 's/*/${custom_icon_window_current}/; s/-/${custom_icon_window_last}/; s/#/${custom_icon_window_activity}/; s/~/${custom_icon_window_silent}/; s/!/${custom_icon_window_bell}/; s/M/${custom_icon_window_mark}/; s/Z/${custom_icon_window_zoom}/')" fi if [ "$window_status_icon_enable" = "no" ]