]> git.zndr.dk Git - dotfiles.git/commitdiff
Check path to source-highlight
authorJannik ZANDER <jannikz@gmail.com>
Sat, 7 Jul 2018 09:54:16 +0000 (11:54 +0200)
committerJannik ZANDER <jannikz@gmail.com>
Sat, 7 Jul 2018 09:54:16 +0000 (11:54 +0200)
.bashrc
bin/ranger [deleted file]

diff --git a/.bashrc b/.bashrc
index 0007ccc53abd8de0c4a2ab5ea67936a995d9df63..bbb321537ca73f93af10607b693679804c129ec1 100644 (file)
--- 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 (executable)
index 914ce75..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-/usr/bin/python3 ~/.vim/pack/github/ranger/ranger.py "$@"