aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/nvim-startup.sh
blob: 1efc93e260c26a963fbad6c6db994beb4f23933e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

if [[ "$1" == '-s' ]]; then
    _filter='sort -nr -k2'
else
    _filter='cat'
fi

log="$(mktemp)"
nvim --startuptime "$log" +q
$_filter "$log" > ./nvim-startup.log