#!/bin/sh case "$EDITOR" in "nvim") nvim +VimwikiIndex ;; "vim") vim +VimwikiIndex ;; *) $EDITOR ~/.local/share/vimwiki/index.wiki ;; esac