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