mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Enable syntax highlighting in less, and update less too
This commit is contained in:
@@ -48,6 +48,7 @@ main() {
|
||||
jq
|
||||
kubernetes-cli
|
||||
kubernetes-helm
|
||||
less
|
||||
mysql
|
||||
openshift-cli
|
||||
peco
|
||||
@@ -60,6 +61,7 @@ main() {
|
||||
ruby-build
|
||||
shellcheck
|
||||
sshfs
|
||||
source-highlight
|
||||
the_silver_searcher
|
||||
thefuck
|
||||
tmux
|
||||
|
||||
@@ -40,6 +40,7 @@ source "$DOTSHELL/git.sh"
|
||||
source "$DOTSHELL/tmux.sh"
|
||||
source "$DOTSHELL/thefuck.sh"
|
||||
source "$DOTSHELL/ctags.sh"
|
||||
source "$DOTSHELL/less.sh"
|
||||
|
||||
# Development
|
||||
source "$DOTSHELL/nodejs.sh"
|
||||
|
||||
11
shell/less.sh
Normal file
11
shell/less.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#
|
||||
# less setup
|
||||
#
|
||||
|
||||
alias le="less"
|
||||
|
||||
# Enable syntax highlighting via source-highlight
|
||||
if command -v src-hilite-lesspipe.sh > /dev/null; then
|
||||
export LESSOPEN="| src-hilite-lesspipe.sh %s"
|
||||
export LESS=" -R "
|
||||
fi
|
||||
Reference in New Issue
Block a user