mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
better support if source-highlight not installed
This commit is contained in:
parent
e30d3abf94
commit
1903a273fd
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
if [ -f `/usr/local/bin/src-hilite-lesspipe.sh`]; then
|
||||
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
|
||||
spath=$(which src-hilite-lesspipe.sh 2>/dev/null)
|
||||
if [ $spath ]; then
|
||||
export LESSOPEN="| $spath %s"
|
||||
export LESS=' -R '
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue