#!/bin/sh if [ "$TERM" = "tmux-256color" ]; then tmux -u split-window vim "$@" else st -t "Editor" -e vim "$@" & fi