diff --git a/.github/renovate.json b/.github/renovate.json index 63decaf..4647cda 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -10,12 +10,15 @@ "prHourlyLimit": 4, "prConcurrentLimit": 10, "configMigration": true, + "minimumReleaseAge": "3 days", "packageRules": [ - { - "groupName": "GitHub Action digests", - "matchDepTypes": ["action"], - "pinDigests": true, - "automerge": true - } + { + "groupName": "GitHub Action digests", + "matchDepTypes": [ + "action" + ], + "pinDigests": true, + "automerge": true + } ] } diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml new file mode 100644 index 0000000..0a427f0 --- /dev/null +++ b/.github/workflows/assign.yml @@ -0,0 +1,28 @@ +name: "Auto Assign" +run-name: "${{ github.workflow }} (${{ github.ref_name }}): ${{ github.event.pull_request.title }}" +on: + pull_request: + types: + - opened + - reopened + - ready_for_review + +defaults: + run: + shell: bash + +jobs: + assign: + runs-on: ubuntu-slim + timeout-minutes: 2 + permissions: + pull-requests: write + steps: + - name: Assign PR to author if no assignees + if: ${{ github.event.pull_request.user.type != 'Bot' && toJSON(github.event.pull_request.assignees) == '[]' }} + run: gh pr edit $NUMBER --add-assignee $ASSIGNEE + env: + GH_TOKEN: ${{ github.token }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.pull_request.number }} + ASSIGNEE: ${{ github.event.pull_request.user.login }} diff --git a/Brewfile b/Brewfile index 9110d39..169fed9 100644 --- a/Brewfile +++ b/Brewfile @@ -1,25 +1,20 @@ -tap "homebrew/bundle" tap "jesseduffield/lazydocker" tap "ryooooooga/tap" -brew "bat" +tap "suzuki-shunsuke/ghaperf" brew "gcc" -brew "chezmoi" +brew "ca-certificates" brew "cmake" -brew "eza" -brew "fd" -brew "fzf" -brew "gh" -brew "git" -brew "httpie" +brew "curl" +brew "dysk" brew "mise" brew "mkcert" -brew "ripgrep" +brew "pipx" brew "sheldon" -brew "shellcheck" -brew "shfmt" brew "starship" -brew "typos-cli" brew "wget" +brew "zizmor" brew "zsh" brew "jesseduffield/lazydocker/lazydocker" brew "ryooooooga/tap/zabrze" +cask "ghaperf" +vscode "command is only available in wsl or inside a visual studio code terminal." diff --git a/README.md b/README.md index 724fcd0..2410d8d 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ This dotfiles repository is intended to be used for Debian or Ubuntu under WSL2. 1. Clone this repository 2. Create `~/.gitconfig_local` - The example is [here](example/.gitconfig_local). + The example is [`example/.gitconfig_local`](example/.gitconfig_local). 3. Create `~/local.zsh` - The example is [here](example/local.zsh). + The example is [`example/local.zsh`](example/local.zsh). 4. Move to the cloned repository 5. Execute the install script diff --git a/dot_config/git/ignore b/dot_config/git/ignore index b2fea60..77a1b1b 100644 --- a/dot_config/git/ignore +++ b/dot_config/git/ignore @@ -18,5 +18,13 @@ log/ ## Workspace file for local local.code-workspace -# Snyk Vulnerability Scanner Extension +# Snyk +## Snyk Vulnerability Scanner Extension .dccache + +## Snyk Security Extension - AI Rules (auto-generated) +.github/instructions/snyk_rules.instructions.md + +# Claude +**/.claude/settings.local.json +**/CLAUDE.local.md diff --git a/dot_config/mise/config.toml.tmpl b/dot_config/mise/config.toml.tmpl index e62be0f..53c79ae 100644 --- a/dot_config/mise/config.toml.tmpl +++ b/dot_config/mise/config.toml.tmpl @@ -7,3 +7,12 @@ deno = "latest" rust = "latest" {{ end }} + +bat = "latest" +eza = "latest" +chezmoi = "latest" +uv = "latest" +ripgrep = "latest" +fzf = "latest" +fd = "latest" +jq = "latest" diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index ef95268..f1ea240 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -44,3 +44,6 @@ inline = 'eval "$(starship init zsh)"' [plugins.mise] inline = 'eval "$(mise activate zsh)"' + +[plugins.ni] +github = "azu/ni.zsh" diff --git a/dot_config/zabrze/config.yaml b/dot_config/zabrze/config.yaml index 853a284..5bcb9f0 100644 --- a/dot_config/zabrze/config.yaml +++ b/dot_config/zabrze/config.yaml @@ -3,6 +3,16 @@ abbrevs: - name: git abbr: g snippet: git + - name: git branch + abbr: b + snippet: branch + context: '^git\s' + global: true + - name: git branch -D + abbr: bd + snippet: branch -D + context: '^git\s' + global: true - name: git checkout abbr: ch snippet: checkout @@ -91,3 +101,23 @@ abbrevs: abbr: dcdown snippet: docker compose down global: true + + # Docker + - name: pnpm + abbr: pn + snippet: pnpm + - name: pnpm install + abbr: i + snippet: install + context: '^pnpm\s' + global: true + + # Bun + - name: bun + abbr: bn + snippet: bun + - name: bun install + abbr: i + snippet: install + context: '^bun\s' + global: true diff --git a/dot_zsh/aliases.zsh b/dot_zsh/aliases.zsh index 31abe33..796db02 100644 --- a/dot_zsh/aliases.zsh +++ b/dot_zsh/aliases.zsh @@ -7,4 +7,7 @@ alias l="ll -aa" # Docker compose alias docker-compose=dc +# Delete merged branches +alias g-delete-merged-branches='git branch --merged | grep -v "*" | grep -v "^+" | xargs git branch -d' + alias pbcopy='xsel --clipboard --input'