#!/bin/bash if [ -f "./TODO.md" ]; then FILE="./TODO.md" elif [ -f "./TODO.txt" ]; then FILE="./TODO.txt" else FILE="$HOME/TODO.md" fi nvim $FILE