From: Jannik ZANDER Date: Sat, 7 Jul 2018 09:54:16 +0000 (+0200) Subject: Check path to source-highlight X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=9072eba1f25cbfa91b4e99f31cc2f66a2de1a53b;p=dotfiles.git Check path to source-highlight --- 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 "$@"