From 1450a9e9f9bcca16fc8162699f1000bb4563ffd5 Mon Sep 17 00:00:00 2001 From: Réouven Assouly Date: Wed, 2 Jan 2019 22:50:51 +0100 Subject: completion: use jq instead of sed for swaybar completion --- completions/zsh/_swaybar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completions/zsh/_swaybar') diff --git a/completions/zsh/_swaybar b/completions/zsh/_swaybar index 4fdfdd8a..af2cee95 100644 --- a/completions/zsh/_swaybar +++ b/completions/zsh/_swaybar @@ -3,7 +3,7 @@ # Completion script for swaybar # -local bars=($(swaymsg -t get_bar_config | sed -e '/^\[/,/\]$/{//d;s/^ *"\(.*\)",\?.*$/\1/}')) +local bars=($(swaymsg -t get_bar_config | jq -r '.[]')) _arguments -s \ '(-h --help)'{-h,--help}'[Show help message and quit]' \ -- cgit v1.2.3