diff options
author | Réouven Assouly <reouvenassouly@yahoo.fr> | 2019-01-02 22:50:51 +0100 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-01-02 21:38:32 -0500 |
commit | 1450a9e9f9bcca16fc8162699f1000bb4563ffd5 (patch) | |
tree | 2cf66002e03215efcc4df2ba457e320d95e4706a /completions/zsh | |
parent | zsh: update completions (diff) | |
download | sway-1450a9e9f9bcca16fc8162699f1000bb4563ffd5.tar.gz sway-1450a9e9f9bcca16fc8162699f1000bb4563ffd5.tar.zst sway-1450a9e9f9bcca16fc8162699f1000bb4563ffd5.zip |
completion: use jq instead of sed for swaybar completion
Diffstat (limited to 'completions/zsh')
-rw-r--r-- | completions/zsh/_swaybar | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
3 | # Completion script for swaybar | 3 | # Completion script for swaybar |
4 | # | 4 | # |
5 | 5 | ||
6 | local bars=($(swaymsg -t get_bar_config | sed -e '/^\[/,/\]$/{//d;s/^ *"\(.*\)",\?.*$/\1/}')) | 6 | local bars=($(swaymsg -t get_bar_config | jq -r '.[]')) |
7 | 7 | ||
8 | _arguments -s \ | 8 | _arguments -s \ |
9 | '(-h --help)'{-h,--help}'[Show help message and quit]' \ | 9 | '(-h --help)'{-h,--help}'[Show help message and quit]' \ |