diff --git a/horsch/zsh.nix b/horsch/zsh.nix index acc233c..4cc6a3d 100644 --- a/horsch/zsh.nix +++ b/horsch/zsh.nix @@ -97,5 +97,16 @@ echo "done." } + + function hb-configs { + curl --silent \ + --location "https://hawkbit-smartcan.horsch.com/rest/v1/softwaremodules" \ + --header "Content-Type: application/json" \ + --header "Authorization: Basic ''$hawkbitToken" \ + --data "q=type==configfs-smartcan" \ + --data "sort=id:DESC" \ + --get \ + | jq | bat + } ''; }