axl

command module
v0.0.0-...-ffd9a81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2023 License: Unlicense Imports: 17 Imported by: 0

README

$ go install github.com/avamsi/axl@latest
# https://github.com/avamsi/axl
source <(axl hooks zsh)
$ axl --help

axl 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 running

Flags:
  -h, --help  help for axl

Use "axl [command] --help" for more information about a command.

Export AXL_NOTIFY to be notified when long running commands finish. Some examples:

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:

export AXL_MESSAGE='💲 {{.command}}
⌚ {{.start}} + ⌛ {{.elapsed}}{{if ne .code 0}} -> 🙅 {{.code}}{{end}} @ 💻 {{.host}}'

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL