#!/bin/bash p="$(which "$1")" && istxt="$(file "$1" | cut -d' ' -f2)" && exec $EDITOR $p || echo "Error!"