about summary refs log tree commit diff stats
path: root/bin/op
diff options
context:
space:
mode:
Diffstat (limited to 'bin/op')
-rwxr-xr-xbin/op2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/op b/bin/op
index 7d426fc..84010d4 100755
--- a/bin/op
+++ b/bin/op
@@ -25,7 +25,7 @@ case "$FILEMIME" in
 		mpv "$FILEPATH" >/dev/null 2>&1 & ;;
 	#text
 	text/*)
-		${EDITOR:-vi} "$FILEPATH">/dev/null 2>&1 & ;;
+		${TERMINAL:-xterm} -e ${EDITOR:-vi} "$FILEPATH">/dev/null 2>&1 & ;;
 	#catchall
 	*)
 		echo "file $(basename "$FILEPATH") could not be opened. its type is $FILEMIME, go tell ensa that $(basename $0) didn't work" >/dev/stderr