{"repo":"popstas/zsh-command-time","free":true,"listed":false,"github":"https://github.com/popstas/zsh-command-time","clone":"git clone https://github.com/popstas/zsh-command-time.git","description":"Show execution time for long commands in zsh","language":"Shell","stars":215,"topics":["zsh","oh-my-zsh","zsh-command-time","powerlevel9k"],"license":null,"category":"cli-tools","readme_excerpt":"zsh-command-time Plugin that output time: xx after long commands and export ZSH COMMAND TIME variable for usage in your scripts. Example output with typeset -F SECONDS : It similar builin feature REPORTTIME, but it outputs only if user + system time = REPORTTIME in config. For example: Sleep don't consume any cpu time and REPORTTIME \"don't see\" such idle commands. If you need to monitor only cpu-angry commands, use REPORTTIME instead this plugin. Install with antigen Install with zplug Install for oh-my-zsh Download: And add command-time to plugins in .zshrc . Configuration You can override defaults in .zshrc : Customization You can customize view of the plugin by redefinition of function zsh command time . There is an example of custom definition zsh command time : You can see result of this function on the following screenshot: Variable $ZSH COMMAND TIME contains execution time in seconds. We calculate how many minutes and hours it was and print this information to terminal. Commands that were executed less than one minutes highlights by green color. Commands that were executed less than three minutes highlights by yellow color. Commands that were executed more than three minutes highlights by red color. Usage with powerlevel9k theme You should not want to use this plugin with powerlevel9k. Sinse powerlevel9k v0.6.0 theme have native segment command execution time (see PR), so you can just add it to your prompt: If you still want to use it with powerlevel9k, add custom elem","default_branch":null,"files":null,"tree":[],"storefront":"/r/popstas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/popstas/zsh-command-time/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}