fish: functions: Add an alias to easily get neovim start up time
This commit is contained in:
parent
5a270db645
commit
426cdd7ee8
1 changed files with 7 additions and 0 deletions
7
fish/.config/fish/functions/nvim_profile.fish
Normal file
7
fish/.config/fish/functions/nvim_profile.fish
Normal 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
|
Loading…
Reference in a new issue