diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh index d2157de49..b71251fa8 100644 --- a/plugins/sprunge/sprunge.plugin.zsh +++ b/plugins/sprunge/sprunge.plugin.zsh @@ -18,11 +18,12 @@ HERE if (( $+commands[python] )); then # use python to attempt to detect the syntax sprunge_syntax() { - echo "try: - from pygments.lexers import get_lexer_for_filename - print(get_lexer_for_filename('$1').aliases[0]) -except: - print('text')" | python +# echo "try: +# from pygments.lexers import get_lexer_for_filename +# print(get_lexer_for_filename('$1').aliases[0]) +#except: +# print('text')" | python + echo ${1##*.}; } else # if we happen to lack python, just report everything as text