https://github.com/jkcdarunday/zplug-blame
A zsh plugin for zplug that lets you see how long it took to load each plugin
https://github.com/jkcdarunday/zplug-blame
Last synced: about 2 months ago
JSON representation
A zsh plugin for zplug that lets you see how long it took to load each plugin
- Host: GitHub
- URL: https://github.com/jkcdarunday/zplug-blame
- Owner: jkcdarunday
- License: mit
- Created: 2023-08-05T15:12:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-06T03:06:53.000Z (almost 3 years ago)
- Last Synced: 2025-01-21T06:45:00.091Z (over 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - zplug-blame - A [zplug](https://github.com/zplug/zplug)-specific plugin that displays how long each of your plugins took to load. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - zplug-blame - A <b><code> 5971⭐</code></b> <b><code> 229🍴</code></b> [zplug](https://github.com/zplug/zplug))-specific plugin that displays how long each of your plugins took to load. (Plugins / ZSH on Windows)
README
# zplug-blame
A zsh plugin for zplug that lets you see how long it took for each zplug plugin to load

## Usage
Make sure that this plugin is loaded before any other plugins.
### Print plugin load times with zplug's total load time
If you want to print the total time since zplug has loaded, you can follow the ff. example in your .zshrc:
```zsh
export ZPLUG_BLAME_START_TIME=$(date +%s%N)
. /usr/share/zsh/scripts/zplug/init.zsh
zplug 'jkcdarunday/zplug-blame'
# Your other zplug plugins go here
zplug check || zplug install
zplug load
zplug_blame::print_load_time
```
### Print plugin load times only
If you don't want to print the zplug load time, you can omit the `export` and `print_load_time` lines like in the ff. example:
```zsh
. /usr/share/zsh/scripts/zplug/init.zsh
zplug 'jkcdarunday/zplug-blame'
# Your other zplug plugins go here
zplug check || zplug install
zplug load
```