mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add command-exists shell helper
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
alias le="less"
|
||||
|
||||
# Enable syntax highlighting via source-highlight
|
||||
if (( $+commands[src-hilite-lesspipe.sh] )); then
|
||||
if command-exists "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
|
||||
|
||||
Reference in New Issue
Block a user