mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-26 06:08:35 +01:00
test tooltip for pkg module
This commit is contained in:
parent
c6fe5d26b3
commit
a45aa4f773
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
context=$(kubectx -c)
|
||||
namespace=$(kubens -c)
|
||||
context=$(kubectx -c 2>/dev/null)
|
||||
namespace=$(kubens -c 2>/dev/null)
|
||||
|
||||
if [[ $namespace == "default" ]]
|
||||
then
|
||||
|
@ -27,7 +27,7 @@ xbps_check(){
|
||||
exit 0
|
||||
fi
|
||||
text="<span foreground='#929292'></span> $pkg_count"
|
||||
tooltip=$(awk '$0=$1' ORS='\\n' '{print $1}' <<< "$pkg")
|
||||
tooltip=$(awk '$0=$1' ORS='\\n' <<< "$pkg")
|
||||
printf '{"text": "%s", "tooltip": "%s"}' "$text" "$tooltip"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user