mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
On Ubuntu at least, the relevant script is not added to the PATH, so we manually have to check for it's complete installation path.
15 lines
375 B
Bash
15 lines
375 B
Bash
#
|
|
# less setup
|
|
#
|
|
|
|
alias le="less"
|
|
|
|
# Enable syntax highlighting via source-highlight
|
|
if (( $+commands[src-hilite-lesspipe.sh] )); then
|
|
export LESSOPEN="| src-hilite-lesspipe.sh %s"
|
|
export LESS=" -R "
|
|
elif [ -f "/usr/share/source-highlight/src-hilite-lesspipe.sh" ]; then
|
|
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
|
|
export LESS=" -R "
|
|
fi
|