mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-14 06:13:47 -05:00
added gh-watch function
11
Examples.md
11
Examples.md
@@ -796,7 +796,18 @@ git rebase -i master --autosquash
|
||||
|
||||

|
||||
|
||||
Watch GitHub actions for the current branch, with selection via fzf
|
||||
|
||||
```sh
|
||||
# gh-watch -- watch the current actions
|
||||
gh-watch() {
|
||||
gh run list \
|
||||
--branch $(git rev-parse --abbrev-ref HEAD) \
|
||||
--json status,name,databaseId |
|
||||
jq -r '.[] | select(.status != "completed") | (.databaseId | tostring) + "\t" + (.name)' |
|
||||
fzf -1 -0 | awk '{print $1}' | xargs gh run watch
|
||||
}
|
||||
```
|
||||
|
||||
### [jrnl](https://github.com/jrnl-org/jrnl)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user