Skip to content

Commit

Permalink
build: create completion functions
Browse files Browse the repository at this point in the history
Signed-off-by: Wryhder <[email protected]>
  • Loading branch information
Wryhder committed Nov 3, 2024
1 parent 44218ac commit 332a864
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tools/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,37 @@ add_to_path() {
done
}

install_autocomplete_bash() {
# TBD
}

install_autocomplete_zsh() {
# TBD

# mkdir $HOME/.ockam/autocomplete

# if [[ ! -f "~/.zshrc" ]]; then
# echo "system doesn't support zsh shell"
# return
# fi

# mkdir $HOME/.ockam/autocomplete/zsh
# ockam autocomplete zsh > $HOME/.ockam/autocomplete/zsh/_ockam
# info "Adding autocomplete to zsh"
# echo >>"~/.zshrc"
# echo "FPATH="$HOME/.ockam/autocomplete/zsh:${FPATH}" >> "~/.zshrc"
# echo "autoload -Uz compinit" >> "~/.zshrc"
# echo "compinit" >> "~/.zshrc"
}

install_autocomplete_fish() {
# TBD
}

install_autocomplete() {
# TBD
}

main() {
local _version="$OCKAM_VERSION"
install_path="$HOME/.ockam"
Expand Down Expand Up @@ -344,6 +375,9 @@ main() {
add_to_path
fi

# TBD: Does this makes sense, and in this spot?
install_autocomplete

echo
heading "GET STARTED:"

Expand Down

0 comments on commit 332a864

Please sign in to comment.