#!/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