functions.zsh: add timeplugins func
This commit is contained in:
parent
86448eacc3
commit
0206842488
@ -37,6 +37,18 @@ timesh() {
|
|||||||
for i in $(seq 1 10); do time $shell -i -c exit; done
|
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() {
|
delete-branches() {
|
||||||
git branch |
|
git branch |
|
||||||
|
Loading…
Reference in New Issue
Block a user