Last active
June 26, 2023 15:21
-
-
Save jason9075/51e1c077f5abdb970d241c0b8640c36d to your computer and use it in GitHub Desktop.
nvim startuptime init shell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Nvim Init Start | |
[Service] | |
ExecStart=/home/jason9075/nvim-startup.sh | |
RemainAfterExit=true | |
Type=oneshot | |
[Install] | |
WantedBy=default.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
/home/jason9075/.local/bin/nvim --startuptime /tmp/nvim_init.log +q | |
# print the first column of the last line of the log file | |
echo "nvim init time: $(tail -n 1 /tmp/nvim_init.log | awk '{print $1}') ms" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment