Skip to content

Commit

Permalink
maint: new gh workflow && zinit logic
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed May 5, 2022
1 parent c3fe834 commit 90b5c3c
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cleanup-workflows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Delete old workflow runs

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
delete_old_runs:
runs-on: ubuntu-latest
steps:
- name: Delete old workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ secrets.GH_ACTIONS_TOKEN }}
repository: ${{ github.repository }}
retain_days: 14
keep_minimum_runs: 50
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release

on:
workflow_dispatch:

jobs:
release:
name: release
Expand Down
33 changes: 21 additions & 12 deletions zsh/.config/zsh/zinit.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -92,30 +92,39 @@ zi light-mode for \
"$ZI_REPO"/zinit-annex-{'binary-symlink','patch-dl','submods'}
#=== GITHUB BINARIES ==================================
zi from'gh-r' nocompile for \
lbin'!* -> hadolint' @hadolint/hadolint \
lbin'!' @hadolint/hadolint \
lbin'!* -> jq' @stedolan/jq \
lbin'!**/gh' @cli/cli \
lbin'!* -> shfmt' @mvdan/sh \
lbin'!**/delta' @dandavison/delta \
lbin'!**/fd' @sharkdp/fd \
lbin'!**/fzf' @junegunn/fzf \
lbin'!**/git-chglog' @git-chglog/git-chglog \
lbin'!**/grex' @pemistahl/grex \
lbin'!**/hyperfine' @sharkdp/hyperfine \
sbin @dandavison/delta \
sbin @sharkdp/fd \
sbin @junegunn/fzf \
sbin @git-chglog/git-chglog \
bpick'*tar.gz*' \
from'gh-r' \
sbin'nvim' \
ver'nightly' \
neovim/neovim \
sbin @pemistahl/grex \
sbin @sharkdp/hyperfine \
lbin'!**/rg' @BurntSushi/ripgrep \
lbin'!**/shellcheck' @koalaman/shellcheck \
lbin'!**/topgrade' @r-darwish/topgrade \
lbin'!**/exa' atinit" alias ll='exa -al'
sbin @koalaman/shellcheck \
sbin @r-darwish/topgrade \
sbin atinit" alias ll='exa -al'
alias l='exa -blF'; alias la='exa -abghilmu'
alias ls='exa --git --group-directories-first'" \
@ogham/exa
zi light-mode is-snippet for https://github.com/junegunn/fzf/raw/master/shell/{'completion','key-bindings'}.zsh
zi from'gh-r' nocompile sbin'*->rust-analyzer' for \
rust-lang/rust-analyzer
#=== COMPILED PROGRAMS ================================
zi make'PREFIX=$PWD install' nocompile for \
lbin'!**/tree' Old-Man-Programmer/tree \
lbin'!**/zsd' $ZI_REPO/zshelldoc
#=== TESTING ==========================================
zi for \
zi as'program' for \
lbin'!revolver' mv'*completion -> _revolver' molovo/revolver \
atclone'./build.zsh' lbin'!zunit' mv'*completion -> _zunit' zunit-zsh/zunit
atclone'./build.zsh' lbin'zunit' mv'*completion -> _zunit' zunit-zsh/zunit
#=== PYTHON ===========================================[[[
function _pip_completion {
local words cword; read -Ac words; read -cn cword
Expand Down

0 comments on commit 90b5c3c

Please sign in to comment.