Skip to content

Commit

Permalink
install aqua
Browse files Browse the repository at this point in the history
  • Loading branch information
cappyzawa committed Oct 25, 2023
1 parent aed90ba commit 2e8d8e2
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 12 deletions.
28 changes: 28 additions & 0 deletions .config/aqua/aqua.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# aqua - Declarative CLI Version Manager
# https://aquaproj.github.io/
# checksum:
# enabled: true
# require_checksum: true
# supported_envs:
# - all
registries:
- type: standard
ref: v4.72.0 # renovate: depName=aquaproj/aqua-registry
- name: custom
type: local
path: ./registry.yaml
- name: private
type: local
path: ./private/registry.yaml
private: true
packages:
- import: ./private/aqua.yaml
- name: cli/[email protected]
- name: junegunn/[email protected]
- name: starship/[email protected]
- name: hashicorp/[email protected]
- name: cappyzawa/[email protected]
registry: custom
- name: jqlang/[email protected]
- name: kubernetes/[email protected]
- name: kubernetes-sigs/kustomize@kustomize/v5.2.1
19 changes: 19 additions & 0 deletions .config/aqua/policy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# aqua Policy
# https://aquaproj.github.io/
registries:
- name: custom
type: local
path: registry.yaml
- type: standard
ref: semver(">= 4.0.0")
- name: private
type: local
path: private/registry.yaml
packages:
# Example
- registry: custom # allow all packages in the Registry
# - name: cli/cli # allow only a specific package. The default value of registry is "standard"
# - name: cli/cli
# version: semver(">= 2.0.0") # version is optional
- registry: standard
- registry: private
6 changes: 6 additions & 0 deletions .config/aqua/registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
packages:
- type: github_release
repo_owner: cappyzawa
repo_name: tfswitch
asset: 'tfswitch_{{trimV .Version}}_{{.OS}}_{{.Arch}}.tar.gz'
description: tfswitch is a command line tool to switch between different versions of terraform.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.config/anyenv/*.swp
.config/anyenv/envs/
.config/anyenv/plugins/
.config/aqua/private/
.config/cheat/cheatsheets/private
.config/gcloud/
.config/direnv/
Expand Down
5 changes: 4 additions & 1 deletion .zsh/zinit.zsh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# required for activatioin {{{
# junegunn/fzf {{{
zinit ice lucid from"gh-r" as"program"
zinit light "junegunn/fzf"
# }}}
# direnv/direnv {{{
zinit ice from"gh-r" as"program" mv"direnv* -> direnv" \
Expand All @@ -13,6 +12,10 @@ zinit light direnv/direnv
zinit ice lucid as"program" pick:"bin/anyenv"
zinit light anyenv/anyenv
# }}}
# aquaproj/aqua {{{
zinit ice lucid as"program" from"gh-r"
zinit light aquaproj/aqua
# }}}
zinit ice lucid
zinit snippet $HOME/.zsh/10_utils.zsh
# }}}
Expand Down
11 changes: 0 additions & 11 deletions .zsh/zinit_wait.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ zinit ice wait'2' lucid as"program" \
has"cargo"
zinit light alacritty/alacritty
# }}}
# aquaproj/aqua {{{
zinit ice wait'2' lucid as"program" from"gh-r"
zinit light aquaproj/aqua
# }}}
# }}}

# docker {{{
Expand Down Expand Up @@ -301,13 +297,6 @@ zinit light GoogleContainerTools/kpt
zinit ice wait'2' lucid as"program" pick"create-kubeconfig"
zinit light zlabjp/kubernetes-scripts
# }}}
# kubernetes-sigs/kustomize {{{
zinit ice wait'2' lucid as"program" from"gh-r" ver"kustomize%2Fv5.1.0" \
bpick:"*_darwin_*.tar.gz" \
atclone"./kustomize completion zsh > ~/.zsh/Completion/_kustomize" \
atpull"%atclone"
zinit light kubernetes-sigs/kustomize
# }}}
# stern/stern {{{
zinit ice wait'2' lucid as"program" from"gh-r" \
mv"stern* -> stern"
Expand Down
6 changes: 6 additions & 0 deletions .zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ path=( \
/usr/sbin(N-/) \
~/.config/anyenv/bin(N-/) \
~/.local/bin(N-/) \
~/.local/share/aquaproj-aqua/bin(N-/) \
~/.local/share/zinit/bin(N-/) \
~/.tmux/bin(N-/) \
~/.nimble/bin(N-/) \
Expand Down Expand Up @@ -111,6 +112,11 @@ export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export ANYENV_ROOT="${XDG_CONFIG_HOME}/anyenv"

# Aqua
export AQUA_CONFIG="${XDG_CONFIG_HOME}/aqua/aqua.yaml"
export AQUA_PROGRESS_BAR="true"
export AQUA_POLICY_CONFIG="${XDG_CONFIG_HOME}/aqua/policy.yaml"

# available $INTERACTIVE_FILTER
export INTERACTIVE_FILTER="fzf:peco:percol:gof:pick"

Expand Down

0 comments on commit 2e8d8e2

Please sign in to comment.