fish: functions: Add an alias to easily get neovim start up time

This commit is contained in:
Sanchayan Maity 2022-01-07 14:05:21 +05:30
parent 5a270db645
commit 426cdd7ee8
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
function nvim_profile
if test -e /tmp/nvim_profile.profile
rm /tmp/nvim_profile.profile
end
nvim --startuptime /tmp/nvim_profile.profile +q
tail -1 /tmp/nvim_profile.profile | awk '{print $1}'
end