Skip to content

BlaineEXE/zsh-cmd-status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

zsh-cmd-status

ZSH plugin to report the status of commands including return code and time taken (duration).

This plugin will report the return code of the previously run command if it returns nonzero. It will report the time taken to run the command if its greater than the duration threshold (ZSH_CMD_STATUS_DURATION_THRESHOLD).

Examples

> false

returned 1
> sleep 10

took 10s
> sleep 11 && false

returned 1 & took 11s
> grep
usage: grep [-abcDEFGHhIiJLlmnOoqRSsUVvwxZ] [-A num] [-B num] [-C[num]]
	[-e pattern] [-f file] [--binary-files=value] [--color=when]
	[--context[=num]] [--directories=action] [--label] [--line-buffered]
	[--null] [pattern] [file ...]

returned 2

Config

Option env var Default Description
ZSH_CMD_STATUS_DURATION_THRESHOLD 10 time in seconds under which duration should not be reported

About

ZSH plugin to report the status of commands including return code and time taken.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages