Compare commits

...
Author SHA1 Message Date
Yahya Kayaal f8277e5043 fix(localstack): require message file argument in sqs-send (#14315) 2026-11-29 09:09:43 -08:00
dependabot[bot] ec7622cfbc chore(deps): bump the py-minor group (#14317)
Bumps the py-minor group in /.github/workflows/dependencies with 4 updates: [certifi](https://github.com/certifi/python-certifi), [charset-normalizer](https://github.com/jawah/charset_normalizer), [pyyaml](https://github.com/yaml/pyyaml) and [semver](https://github.com/python-semver/python-semver).


Updates `certifi` from 2026.10.23 to 2026.11.20
- [Commits](https://github.com/certifi/python-certifi/compare/2026.10.23...2026.11.20)

Updates `charset-normalizer` from 3.5.2 to 3.5.3
- [Release notes](https://github.com/jawah/charset_normalizer/releases)
- [Changelog](https://github.com/jawah/charset_normalizer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jawah/charset_normalizer/compare/3.5.2...3.5.3)

Updates `pyyaml` from 6.0.3 to 6.0.4
- [Release notes](https://github.com/yaml/pyyaml/releases)
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.4/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0.3...6.0.4)

Updates `semver` from 3.1.2 to 3.1.3
- [Release notes](https://github.com/python-semver/python-semver/releases)
- [Changelog](https://github.com/python-semver/python-semver/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/python-semver/python-semver/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: certifi
  dependency-version: 2026.11.20
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: py-minor
- dependency-name: charset-normalizer
  dependency-version: 3.5.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: py-minor
- dependency-name: pyyaml
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: py-minor
- dependency-name: semver
  dependency-version: 3.1.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: py-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-29 09:08:31 -08:00
dependabot[bot] e0bc2c99c4 chore(deps): bump the gha-minor group with 2 updates (#14316)
Bumps the gha-minor group with 2 updates: [actions/setup-python](https://github.com/actions/setup-python) and [github/codeql-action/upload-sarif](https://github.com/github/codeql-action).


Updates `actions/setup-python` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v7...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0)

Updates `github/codeql-action/upload-sarif` from 4.39.3 to 4.39.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/33d7b85da1a04171e211befe2c739303b9a4c066...915412ff23e8b7659517e607487dbeae018f2934)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gha-minor
- dependency-name: github/codeql-action/upload-sarif
  dependency-version: 4.39.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gha-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-29 09:04:57 -08:00
YourNeelsOG e0fb74a8e2 fix(vi-mode): restore cursor shape when leaving visual mode (#14313)
Fixes #11705
2026-11-28 13:55:09 -08:00
Calion 44a5decbc4 docs(thefuck): put the plugins line in a code block (#13272)
Added copybox for plugin code
2026-11-27 19:23:33 -08:00
Abdullah Ahmed 90f9fbc532 feat(terraform): add terraform-docs completion (#14185)
Generate completions from the installed terraform-docs CLI in the background and preserve a valid cache when generation fails or returns no output.

Fixes #12138

AI-assisted with OpenAI Codex.
2026-11-27 19:01:52 -08:00
Tien Nguyen Minh 801782e8a6 fix(spectrum): fall back to a loop on zsh older than 5.0.6 (#14278) 2026-11-27 18:54:18 -08:00
9 changed files with 76 additions and 15 deletions

No files matched your search

@@ -1,7 +1,7 @@
certifi==2026.10.23 certifi==2026.11.20
charset-normalizer==3.5.2 charset-normalizer==3.5.3
idna==3.20 idna==3.20
PyYAML==6.0.3 PyYAML==6.0.4
requests==2.34.2 requests==2.34.2
semver==3.1.2 semver==3.1.3
urllib3==2.8.0 urllib3==2.8.0
+1 -1
View File
@@ -49,7 +49,7 @@ jobs:
- name: Set up git repository - name: Set up git repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python - name: Set up Python
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with: with:
python-version: '3.14' python-version: '3.14'
- name: Install dependencies - name: Install dependencies
+1 -1
View File
@@ -60,6 +60,6 @@ jobs:
retention-days: 5 retention-days: 5
- name: "Upload to code-scanning" - name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with: with:
sarif_file: results.sarif sarif_file: results.sarif
+11
View File
@@ -2,6 +2,8 @@
# P.C. Shyamshankar <sykora@lucentbeing.com> # P.C. Shyamshankar <sykora@lucentbeing.com>
# Copied from https://github.com/sykora/etc/blob/master/zsh/functions/spectrum/ # Copied from https://github.com/sykora/etc/blob/master/zsh/functions/spectrum/
autoload -Uz is-at-least
typeset -AHg FX FG BG typeset -AHg FX FG BG
FX=( FX=(
@@ -18,7 +20,16 @@ FX=(
() { () {
setopt localoptions noksharrays setopt localoptions noksharrays
local -a codes fg bg local -a codes fg bg
local code
codes=({000..255}) codes=({000..255})
# ${a:^b} array zipping needs zsh 5.0.6
if ! is-at-least 5.0.6; then
for code in $codes; do
FG[$code]="%{"$'\e'"[38;5;${code}m%}"
BG[$code]="%{"$'\e'"[48;5;${code}m%}"
done
return
fi
fg=( "%{"$'\e'"[38;5;"${^codes}"m%}" ) fg=( "%{"$'\e'"[38;5;"${^codes}"m%}" )
bg=( "%{"$'\e'"[48;5;"${^codes}"m%}" ) bg=( "%{"$'\e'"[48;5;"${^codes}"m%}" )
FG=( ${codes:^fg} ) FG=( ${codes:^fg} )
+3 -3
View File
@@ -28,10 +28,10 @@ lsk() {
# Example # Example
# sqs-send user user.json # sqs-send user user.json
sqs-send(){ sqs-send(){
if [ -z "$1" ]; then if [ -z "$1" ] || [ -z "$2" ]; then
echo "Use: sqs-send <queue> <payload>" echo "Use: sqs-send <queue> <payload>" >&2
return 1 return 1
fi fi
curl -X POST "http://localhost:4566/000000000000/$1" -d "Action=SendMessage" -d "MessageBody=$(cat $2)" curl -X POST "http://localhost:4566/000000000000/$1" -d "Action=SendMessage" -d "MessageBody=$(cat "$2")"
} }
+8
View File
@@ -12,6 +12,14 @@ plugins=(... terraform)
## Requirements ## Requirements
- [Terraform](https://terraform.io/) - [Terraform](https://terraform.io/)
- [terraform-docs](https://terraform-docs.io/) (optional, for completion)
## terraform-docs completion
If `terraform-docs` is installed, this plugin also enables its completion.
The completion script is generated from the installed version and cached in
`$ZSH_CACHE_DIR/completions/_terraform-docs`. It is refreshed in the background
each time the plugin loads, so completion stays in sync with the installed CLI.
## Aliases ## Aliases
+20
View File
@@ -39,3 +39,23 @@ alias tfsh='terraform show'
alias tfw='terraform workspace' alias tfw='terraform workspace'
alias tfwl='terraform workspace list' alias tfwl='terraform workspace list'
alias tfws='terraform workspace select' alias tfws='terraform workspace select'
if (( $+commands[terraform-docs] )); then
# If the completion file doesn't exist yet, compinit hasn't registered it.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_terraform-docs" ]]; then
typeset -g -A _comps
autoload -Uz _terraform-docs
_comps[terraform-docs]=_terraform-docs
fi
zmodload -F zsh/files b:zf_mv
() {
local completions
completions=$(command terraform-docs completion zsh) || return
[[ -n "$completions" ]] || return
local TMPPREFIX="$ZSH_CACHE_DIR/completions/._terraform-docs"
zf_mv -f -- =(print -r -- "$completions") \
"$ZSH_CACHE_DIR/completions/_terraform-docs"
} &|
fi
+2
View File
@@ -4,7 +4,9 @@
To use it, add thefuck to the plugins array of your zshrc file: To use it, add thefuck to the plugins array of your zshrc file:
```zsh
plugins=(... thefuck) plugins=(... thefuck)
```
## Usage ## Usage
Press `ESC` twice to correct previous console command. Press `ESC` twice to correct previous console command.
+26 -6
View File
@@ -43,12 +43,32 @@ function _vi-mode-set-cursor-shape-for-keymap() {
printf $'\e[%d q' "${_shape}" printf $'\e[%d q' "${_shape}"
} }
function _visual-mode { autoload -Uz is-at-least
typeset -g VI_KEYMAP=visual if is-at-least 5.3; then
_vi-mode-set-cursor-shape-for-keymap "$VI_KEYMAP" # Visual mode doesn't change $KEYMAP, it only activates the region, so
zle .visual-mode # zle-keymap-select never runs when it starts or ends
} function _vi-mode-zle-line-pre-redraw() {
zle -N visual-mode _visual-mode if [[ "$KEYMAP" = vicmd ]] && (( REGION_ACTIVE )); then
[[ "$VI_KEYMAP" != visual ]] || return 0
typeset -g VI_KEYMAP=visual
elif [[ "$VI_KEYMAP" = visual ]]; then
typeset -g VI_KEYMAP=$KEYMAP
else
return 0
fi
_vi-mode-set-cursor-shape-for-keymap "$VI_KEYMAP"
}
autoload -Uz add-zle-hook-widget
add-zle-hook-widget zle-line-pre-redraw _vi-mode-zle-line-pre-redraw
else
# zle-line-pre-redraw needs zsh 5.3
function _visual-mode {
typeset -g VI_KEYMAP=visual
_vi-mode-set-cursor-shape-for-keymap "$VI_KEYMAP"
zle .visual-mode
}
zle -N visual-mode _visual-mode
fi
function _vi-mode-should-reset-prompt() { function _vi-mode-should-reset-prompt() {
# If $VI_MODE_RESET_PROMPT_ON_MODE_CHANGE is unset (default), dynamically # If $VI_MODE_RESET_PROMPT_ON_MODE_CHANGE is unset (default), dynamically