ljdsalkjdsalkj

This commit is contained in:
2025-04-07 18:45:39 +02:00
parent 47c5b9a739
commit 5e370255c7

View File

@@ -639,10 +639,10 @@ _packages_json:
$(( "$epoch" - "$(stat -c %Y packages.json )" )) -gt $(( 60*60*24*7 ))
]]; then
set -x
if ! $GIT -C master/ diff HEAD --exit-code --quiet; then
if ! $GIT -C master/ diff HEAD --exit-code --quiet 1>&2; then
echo >&2 "ERROR: $(realpath master) is dirty!"
fi
git -C master/ pull upstream master
git -C master/ pull upstream master 1>&2
time nix-env > packages.json \
--extra-experimental-features no-url-literals \
--option system x86_64-linux \
@@ -668,10 +668,14 @@ _packages_json:
cd "$invokedir"; $GIT log --oneline -n800 | fzf --layout=reverse --multi --height 15 | cut -d' ' -f1
@_a_package: _packages_json
gum spin --show-output just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 | grep .
#gum spin --show-output just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 | grep .
just list-packages >/dev/null
just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 | grep .
@_some_packages: _packages_json
gum spin --show-output just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 --multi | grep .
#gum spin --show-output just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 --multi | grep .
just list-packages >/dev/null
just list-packages | cut -f1 | fzf --sync --layout=reverse --height 15 --multi | grep .
@_a_pr:
cd master; gh pr list --limit 1000 --json 'number,title' --state open | jq '.[]|"\(.number) - \(.title)"' -r | gum filter --placeholder "Pick PR..." --height 10 | cut -d' ' -f1