Skip to content

Instantly share code, notes, and snippets.

@jason9075
Last active June 26, 2023 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jason9075/51e1c077f5abdb970d241c0b8640c36d to your computer and use it in GitHub Desktop.
Save jason9075/51e1c077f5abdb970d241c0b8640c36d to your computer and use it in GitHub Desktop.
nvim startuptime init shell
[Unit]
Description=Nvim Init Start
[Service]
ExecStart=/home/jason9075/nvim-startup.sh
RemainAfterExit=true
Type=oneshot
[Install]
WantedBy=default.target
#!/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