Files
dotfiles/dot_config/tmux/bootstraps/nvim.sh

8 lines
195 B
Bash

#!/bin/sh
# Create new window
tmux neww -n nvim
d=$(date +'%Y%m%dT%H%M%S')
rnd=$(diceware -n 2 --no-cap -d -)
tmux send-keys -t 0 "nvim -c startinsert -c 'set ft=markdown' /tmp/${d}-${rnd}" C-m