File tree 5 files changed +21
-0
lines changed
5 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ alias ha="hass-cli"
Original file line number Diff line number Diff line change 1
1
.config /asciinema /install-id
2
2
.config /dotfiles /first_run
3
3
* .kdbx
4
+ .config /hass-cli /token
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ podman container run \
4
+ --rm \
5
+ --name hass-cli \
6
+ --network=host \
7
+ -e HASS_SERVER=" https://crazybyte.duckdns.org" \
8
+ -e HASS_TOKEN=$( cat ~ /.config/hass-cli/token) \
9
+ -e _HASS_CLI_COMPLETE \
10
+ -e COMP_WORDS \
11
+ -e COMP_CWORD \
12
+ -e _HASS_CLI_COMPLETE \
13
+ localhost/hass-cli:local $*
Original file line number Diff line number Diff line change @@ -176,6 +176,12 @@ autoload -Uz custom_colors # load ~/.config/zsh/dir_colors
176
176
custom_colors
177
177
# #####
178
178
179
+ # ## hass-cli autocompletion ###
180
+ # https://github.com/home-assistant-ecosystem/home-assistant-cli#auto-completion
181
+ # Needs to be run after compinit is loaded
182
+ eval " $( _HASS_CLI_COMPLETE=zsh_source hass-cli) "
183
+ # #####
184
+
179
185
# ## LOAD PLUGINS ###
180
186
# zsh-syntax-highlighting
181
187
# https://github.com/zsh-users/zsh-syntax-highlighting
You can’t perform that action at this time.
0 commit comments