From 9072eba1f25cbfa91b4e99f31cc2f66a2de1a53b Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Sat, 7 Jul 2018 11:54:16 +0200 Subject: [PATCH] Check path to source-highlight --- .bashrc | 7 +++++-- bin/ranger | 3 --- 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100755 bin/ranger diff --git a/.bashrc b/.bashrc index 0007ccc..bbb3215 100644 --- a/.bashrc +++ b/.bashrc @@ -49,8 +49,11 @@ export HISTIGNORE="ll:ls:cd:cd -:pwd:exit:date:* --help"; export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # Enable syntax-highlighting in less. -#export LESSOPEN="| /mingw64/bin/src-hilite-lesspipe.sh %s" -export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" +if [[ -f /mingw64/bin/src-hilite-lesspipe.sh ]]; then + export LESSOPEN="| /mingw64/bin/src-hilite-lesspipe.sh %s" +elif [[ -f /usr/share/source-highlight/src-hilite-lesspipe.sh ]]; then + export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s" +fi export LESS=" -R " # Load aliases, functions, etc diff --git a/bin/ranger b/bin/ranger deleted file mode 100755 index 914ce75..0000000 --- a/bin/ranger +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -/usr/bin/python3 ~/.vim/pack/github/ranger/ranger.py "$@" -- 2.43.0