Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/awesomebot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ jobs:
- uses: actions/checkout@v5
- uses: docker://dkhamsing/awesome_bot:latest
with:
args: /github/workspace/README.md --allow-ssl --allow 202,500,501,502,503,504,509,521 --allow-dupe --allow-redirect --request-delay 1 --white-list https://img.shields.io
args: /github/workspace/README.md --allow-ssl --allow 202,500,501,502,503,504,509,521 --allow-dupe --allow-redirect --request-delay 1 --white-list https://img.shields.io
21 changes: 21 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: forbid-submodules
- id: mixed-line-ending
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint-fix
args: ["--ignore", "LICENSE.md", "--disable", "~MD013"]
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:
- id: doctoc
args: ["--update-only"]
3 changes: 2 additions & 1 deletion bin/ansi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# © Copyright 2015 Tyler Akins
# Licensed under the MIT license with an additional non-advertising clause
# See http://github.com/fidian/ansi
# shellcheck disable=SC2004

add-code() {
local N
Expand Down Expand Up @@ -656,4 +657,4 @@ fi

if $NEWLINE; then
echo ""
fi
fi
4 changes: 3 additions & 1 deletion bin/iterm2-tab-color
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function has() {
}

if [[ ! -n "$ITERM_SESSION_ID" ]]; then
# shellcheck disable=SC2086
fail "$(basename $0) only works in iTerm 2"
fi

Expand All @@ -34,5 +35,6 @@ if [[ $# == 3 ]]; then
echo -ne "\033]6;1;bg;green;brightness;$2\a"
echo -ne "\033]6;1;bg;blue;brightness;$3\a"
else
# shellcheck disable=SC2086
fail "$(basename $0) requires 3 arguments for the red, green and blue values to set the tab to"
fi
fi
5 changes: 3 additions & 2 deletions bin/tab-blue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Set a tab blue
#
# Copyright 2022, Joe Block <[email protected]>
# Copyright 2022-2025, Joe Block <[email protected]>

set -o pipefail
if [[ -n "$DEBUG" ]]; then
Expand Down Expand Up @@ -30,7 +30,8 @@ if ! has iterm2-tab-color; then
fi

if [[ ! -n "$ITERM_SESSION_ID" ]]; then
# shellcheck disable=SC2086
fail "$(basename $0) only works in iTerm 2"
fi

exec iterm2-tab-color 0 0 255
exec iterm2-tab-color 0 0 255
2 changes: 1 addition & 1 deletion bin/tab-defaultcolor
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
#
# Copyright 2022, Joe Block <[email protected]>

echo -ne "\033]6;1;bg;*;default\a"
echo -ne "\033]6;1;bg;*;default\a"
5 changes: 3 additions & 2 deletions bin/tab-green
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Set a tab green
#
# Copyright 2022, Joe Block <[email protected]>
# Copyright 2022-2025, Joe Block <[email protected]>

set -o pipefail
if [[ -n "$DEBUG" ]]; then
Expand Down Expand Up @@ -30,7 +30,8 @@ if ! has iterm2-tab-color; then
fi

if [[ ! -n "$ITERM_SESSION_ID" ]]; then
# shellcheck disable=SC2086
fail "$(basename $0) only works in iTerm 2"
fi

exec iterm2-tab-color 0 255 0
exec iterm2-tab-color 0 255 0
6 changes: 4 additions & 2 deletions bin/tab-red
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#
# Set a tab red
#
# Copyright 2022, Joe Block <[email protected]>
# Copyright 2022-2025, Joe Block <[email protected]>
# shellcheck disable=SC2004

set -o pipefail
if [[ -n "$DEBUG" ]]; then
Expand Down Expand Up @@ -30,7 +31,8 @@ if ! has iterm2-tab-color; then
fi

if [[ ! -n "$ITERM_SESSION_ID" ]]; then
# shellcheck disable=SC2086
fail "$(basename $0) only works in iTerm 2"
fi

exec iterm2-tab-color 255 0 0
exec iterm2-tab-color 255 0 0
Loading