diff options
-rwxr-xr-x | change | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,9 @@ source ~/.bashrc readonly FILTER_PATH="/usr/local/share/libChangeLog/filter" -if [[ $(mimedb $1) == application* ]] +command -v $1 > /dev/null + +if [[ $? -eq 0 ]] # i.e. if $1 is an executable then readonly EDITOR_NAME=$(basename $1) readonly EDITOR_CMD="$@" |