diff --git a/.zsh/functions.zsh b/.zsh/functions.zsh index 19dc7d0..0efc446 100644 --- a/.zsh/functions.zsh +++ b/.zsh/functions.zsh @@ -37,6 +37,18 @@ timesh() { for i in $(seq 1 10); do time $shell -i -c exit; done } +timeplugins() { + for plugin ($plugins); do + timer=$(($(date +%s%N)/1000000)) + if [ -f $ZSH/plugins/$plugin/$plugin.plugin.zsh ]; then + source $ZSH/plugins/$plugin/$plugin.plugin.zsh + fi + now=$(($(date +%s%N)/1000000)) + elapsed=$(($now-$timer)) + echo $elapsed":" $plugin; + done +} + delete-branches() { git branch |