1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2026-04-12 17:29:32 +00:00

3 Commits

Author SHA1 Message Date
dependabot[bot]
9414ff9d25 chore(deps): bump actions/create-github-app-token from 3.0.0 to 3.1.1
Bumps [actions/create-github-app-token](https://github.com/actions/create-github-app-token) from 3.0.0 to 3.1.1.
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](f8d387b68d...1b10c78c78)

---
updated-dependencies:
- dependency-name: actions/create-github-app-token
  dependency-version: 3.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-12 12:52:28 +00:00
Chris Schindlbeck
7c10d9839f feat(terraform): add aliases for terraform: tfapp, tfpo 2026-04-07 12:25:32 +02:00
Chris Schindlbeck
103246c198 feat(opentofu): add aliases for opentofu: ttap, ttapp, ttir, ttiu, ttiur, ttpo 2026-04-07 12:25:32 +02:00
7 changed files with 14 additions and 100 deletions

View File

@@ -23,7 +23,7 @@ jobs:
fetch-depth: 0
- name: Authenticate as @ohmyzsh
id: generate-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
with:
app-id: ${{ secrets.OHMYZSH_APP_ID }}
private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}

View File

@@ -22,7 +22,7 @@ jobs:
egress-policy: audit
- name: Authenticate as @ohmyzsh
id: generate-token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
with:
app-id: ${{ secrets.OHMYZSH_APP_ID }}
private-key: ${{ secrets.OHMYZSH_APP_PRIVATE_KEY }}

View File

@@ -1,30 +0,0 @@
# Jules
Zsh autocompletion for the `jules` command-line interface.
## Installation
Add `jules` to the plugins list in your `.zshrc`:
```zsh
plugins=(... jules)
Reload your shell:
source ~/.zshrc
```
Features:
- Command and subcommand completion
- Flags and options completio
- Support for remote command
Requirements:
- Zsh
- Oh My Zs
- Jules CLI available in $PATH (download on https://jules.google/docs/cli/reference)
Maintainer
JuanCaarPapers
https://github.com/JuanCaarPapers

View File

@@ -1,59 +0,0 @@
#compdef jules
_jules() {
local line
_arguments -C \
"1: :->command" \
"*::arg:->args"
case $state in
command)
local -a commands
commands=(
'login:Sign in to Jules with your Google account'
'logout:Sign out of the current session'
'remote:Manage repositories and remote sessions'
'version:Show the installed version of Jules'
'help:Show general help or help for a specific command'
'completion:Generate shell autocompletion scripts'
)
_describe -t commands 'jules command' commands
;;
args)
case $words[1] in
remote)
_arguments \
"1: :->remote_cmd" \
"*::arg:->remote_args"
case $state in
remote_cmd)
local -a remote_commands
remote_commands=(
'list:List connected repositories or active sessions'
'new:Start a new Jules session in a repository'
'pull:Download the results of a session'
)
_describe -t remote_commands 'remote command' remote_commands
;;
remote_args)
_arguments \
'--repo[Specify the repository (e.g. user/repo)]:repo:_files' \
'--session[Session name or ID]:session:' \
'--parallel[Number of parallel sessions]:count:' \
'--theme[Interface theme (light/dark)]:theme:(light dark)'
;;
esac
;;
*)
_arguments \
'(-h --help)'{-h,--help}'[Show help]' \
'--theme[Set the visual theme]:theme:(light dark)'
;;
esac
;;
esac
}
_jules "$@"

View File

@@ -1,4 +0,0 @@
# Jules Oh My Zsh plugin
# Provides Zsh completion for the jules CLI
fpath+=(${0:A:h})

View File

@@ -30,14 +30,20 @@ function tofu_version_prompt_info() {
alias tt='tofu'
alias tta='tofu apply'
alias tta!='tofu apply -auto-approve'
alias ttap='tofu apply -parallelism=1'
alias ttapp='tofu apply tfplan'
alias ttc='tofu console'
alias ttd='tofu destroy'
alias ttd!='tofu destroy -auto-approve'
alias ttf='tofu fmt'
alias ttfr='tofu fmt -recursive'
alias tti='tofu init'
alias ttir='tofu init -reconfigure'
alias ttiu='tofu init -upgrade'
alias ttiur='tofu init -upgrade -reconfigure'
alias tto='tofu output'
alias ttp='tofu plan'
alias ttpo='tofu plan -out tfplan'
alias ttv='tofu validate'
alias tts='tofu state'
alias ttsh='tofu show'

View File

@@ -4,21 +4,21 @@ function tf_prompt_info() {
# check if in terraform dir and file exists
[[ -d "${TF_DATA_DIR:-.terraform}" && -r "${TF_DATA_DIR:-.terraform}/environment" ]] || return
local workspace="$(< "${TF_DATA_DIR:-.terraform}/environment")"
local workspace="$(<"${TF_DATA_DIR:-.terraform}/environment")"
echo "${ZSH_THEME_TF_PROMPT_PREFIX-[}${workspace:gs/%/%%}${ZSH_THEME_TF_PROMPT_SUFFIX-]}"
}
function tf_version_prompt_info() {
local terraform_version
terraform_version=$(terraform --version | head -n 1 | cut -d ' ' -f 2)
echo "${ZSH_THEME_TF_VERSION_PROMPT_PREFIX-[}${terraform_version:gs/%/%%}${ZSH_THEME_TF_VERSION_PROMPT_SUFFIX-]}"
local terraform_version
terraform_version=$(terraform --version | head -n 1 | cut -d ' ' -f 2)
echo "${ZSH_THEME_TF_VERSION_PROMPT_PREFIX-[}${terraform_version:gs/%/%%}${ZSH_THEME_TF_VERSION_PROMPT_SUFFIX-]}"
}
alias tf='terraform'
alias tfa='terraform apply'
alias tfa!='terraform apply -auto-approve'
alias tfap='terraform apply -parallelism=1'
alias tfapp='terraform apply tfplan'
alias tfc='terraform console'
alias tfd='terraform destroy'
alias tfd!='terraform destroy -auto-approve'
@@ -31,6 +31,7 @@ alias tfiu='terraform init -upgrade'
alias tfiur='terraform init -upgrade -reconfigure'
alias tfo='terraform output'
alias tfp='terraform plan'
alias tfpo='terraform plan -out tfplan'
alias tfv='terraform validate'
alias tfs='terraform state'
alias tft='terraform test'