Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avamsi/axl
axl watches over your commands (like https://github.com/avamsi/heimdall before it)
https://github.com/avamsi/axl
cli golang notifications zsh
Last synced: about 1 month ago
JSON representation
axl watches over your commands (like https://github.com/avamsi/heimdall before it)
- Host: GitHub
- URL: https://github.com/avamsi/axl
- Owner: avamsi
- License: unlicense
- Created: 2023-07-21T19:09:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-21T20:08:02.000Z (about 2 months ago)
- Last Synced: 2024-11-21T21:19:47.498Z (about 2 months ago)
- Topics: cli, golang, notifications, zsh
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```
$ go install github.com/avamsi/axl@latest
``````shell
# https://github.com/avamsi/axl
source <(axl hooks zsh)
``````
$ axl --helpaxl watches over your commands.
Usage:
axl [command]Available Commands:
completion Generate the autocompletion script for the specified shell
help Help about any command
hooks Shell hooks
internal Axl internal commands, not for general use
list List currently running commands
wait Wait for a command to finish runningFlags:
-h, --help help for axlUse "axl [command] --help" for more information about a command.
```Export AXL_NOTIFY to be notified when long running commands finish. Some examples:
```shell
export AXL_NOTIFY=cat
export AXL_NOTIFY="mail -s axl $USER"
export AXL_NOTIFY="slack-cli -d $USER"' "$(cat)"'
```Export AXL_MESSAGE (per https://pkg.go.dev/text/template) to customize the message.
command, start, elapsed, code and host are available. This is the default:```shell
export AXL_MESSAGE='💲 {{.command}}
⌚ {{.start}} + ⌛ {{.elapsed}}{{if ne .code 0}} -> 🙅 {{.code}}{{end}} @ 💻 {{.host}}'
```