diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh index b71251fa8..bb76207ce 100644 --- a/plugins/sprunge/sprunge.plugin.zsh +++ b/plugins/sprunge/sprunge.plugin.zsh @@ -23,8 +23,8 @@ if (( $+commands[python] )); then # print(get_lexer_for_filename('$1').aliases[0]) #except: # print('text')" | python - echo ${1##*.}; - } + echo ${1##*.} + } else # if we happen to lack python, just report everything as text omz_log_msg "sprunge: syntax highlighting disabled since python isn't available"