feat: zsh, bash and fish plugins that report long commands #1

Open
jwarykowski wants to merge 2 commits from feat/shell-plugins into main
Owner

zsh, bash and fish plugins: a command that ran for 30 seconds or more sends command.passed or command.failed to keybars Pro when it finishes, with the repository and branch, in the background.

Editors, pagers, ssh and tmux are left out (KEYBARS_SHELL_IGNORE). bash uses bash-preexec when it's loaded, else a DEBUG trap and PROMPT_COMMAND, and works on 3.2. bin/keybars-shell-setup adds two starter rules on Esc.

Tests drive real interactive zsh and bash against a fake keybars-pro; fish's fire fish_postexec. Checked locally, on Fedora with fish 4.6 and on bash 3.2.

zsh, bash and fish plugins: a command that ran for 30 seconds or more sends `command.passed` or `command.failed` to keybars Pro when it finishes, with the repository and branch, in the background. Editors, pagers, ssh and tmux are left out (`KEYBARS_SHELL_IGNORE`). bash uses bash-preexec when it's loaded, else a DEBUG trap and PROMPT_COMMAND, and works on 3.2. `bin/keybars-shell-setup` adds two starter rules on Esc. Tests drive real interactive zsh and bash against a fake `keybars-pro`; fish's fire `fish_postexec`. Checked locally, on Fedora with fish 4.6 and on bash 3.2.
feat: zsh, bash and fish plugins that report long commands
All checks were successful
CI / check (pull_request) Successful in 35s
ab2e41526a
A command that ran for 30 seconds or more sends command.passed or
command.failed to keybars Pro, with the repository and branch, in the
background. Editors, pagers and other programs you sit in are left out.
bin/keybars-shell-setup adds two starter rules on Esc.
ci: run in the job image, with nothing from GitHub
All checks were successful
CI / check (pull_request) Successful in 36s
c478fd6ec0
All checks were successful
CI / check (pull_request) Successful in 36s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feat/shell-plugins:feat/shell-plugins
git switch feat/shell-plugins

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff feat/shell-plugins
git switch feat/shell-plugins
git rebase main
git switch main
git merge --ff-only feat/shell-plugins
git switch feat/shell-plugins
git rebase main
git switch main
git merge --no-ff feat/shell-plugins
git switch main
git merge --squash feat/shell-plugins
git switch main
git merge --ff-only feat/shell-plugins
git switch main
git merge feat/shell-plugins
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jwarykowski/keybars-shell!1
No description provided.